order by desc rDate does not work
Helloorder by desc rDate does not work in my query
select cv_id,to_char(rDate,'Month dd, yyyy') from jobResponses
where job_id=35 and (responseStatus=1 OR responseStatus=2) order by rDate desc
March 03, 2012
March 03, 2012
March 04, 0012
Thanks to anitcipation
Christy H. wrote:
order by desc rDate does not work in my query
Well, it works fine. Year last rDate is 0012, thats why he is the last. It seems that the table data was not loaded properly and you ended up having rows with year 12 instead of 2012. Check the data in the table.
SY.
Tags: Database
Similar Questions
-
MySQL ORDER BY DESC date_created is not working properly
I created a table to display the data in my Web site. the data are displayed as expected with the exception of everything I do before 10:00 rest on top. Please check my site to see what I mean
Here is the code for the mysql table relavent
SELECT the title, merchant, image, price, price_price, dollar_sign, cliquer_ici, listprice_text, dealexpire_text, added_text,
to_shop, price_note, description, link_product, shipping_info, tax_info, other_info, deal_expire, list_price, category_items,
buying_instruction, DATE_FORMAT(date_created, '%m/%d/%Y %l:%i %p') AS «date_created», DATE_FORMAT (date_created,' %W))
%M %Y %d ') AS 'date_only '.
TO mylist
WHERE date_created > SUBDATE (NOW (), 10)
ORDER BY DESC date_createdthnank you.
OK, actually what I think is happening, is that you sort by the date formatting string, so it is sort a string. 09:47 does precede 11:45 in a descending order of the chain. Thus, you should not change the name of the alias for the date formatting for your column select, but use the name date_created column in your order by clause.
It is one of the reasons that alias of should not be referred to the same columns.
-
Newly ordered Dell battery online does not work
Original title: battery
I ordered this battery 1 month ago in line of Dell 65 watt slim auto-air ac adapter for latitude on 4/25 13. What's wrong?
Hi Mary,
(1) what exactly is the problem you are having with the battery?
(2) what is the operating system that you have installed on your computer?
(3) do you have problems of power with the computer?
For battery related queries, I suggest you contact the manufacturer for more information.
http://www.Dell.com/support/contents/us/en/19/category/contact-information?c=us&l=en&s=DHS&CS=19
For more information related to Windows, feel free to post. We will be happy to help you.
-
order by desc or ASC does not work with rownum
When you add a'm rownum < 2 order by asc or desc in my query, then it does not work.SQL> desc offer Name Null? Type ----------------------------------------- -------- ---------------------------- OFFER_ID NOT NULL NUMBER(14) DOMAIN_ID NUMBER(14) OFFERDATE TIMESTAMP(0) CONTACTPERSON VARCHAR2(36) EMAIL VARCHAR2(50) TEL VARCHAR2(23) CATEGORY NUMBER(2) AMOUNT NUMBER(5) STATUS NUMBER(2) SQL> ed Wrote file afiedt.buf 1 select to_char(offerdate,'dd-Mon-yyyy'), 2 offer_id, 3 amount 4 from 5 offer 6 where 7 domain_id=1 8 and amount is not null 9* order by offerdate desc SQL> / TO_CHAR(OFF OFFER_ID AMOUNT ----------- ---------- ---------- 27-Apr-2010 4 55 26-Apr-2010 5 45 26-Apr-2010 3 50 26-Apr-2010 2 45 /*****These may be Ten thousand rows*****/
I just want to display a disc of DB offerDate wiseSQL> ed Wrote file afiedt.buf 1 select to_char(offerdate,'dd-Mon-yyyy'), 2 offer_id, 3 amount 4 from 5 offer 6 where 7 domain_id=1 8 and amount is not null 9 and 10 rownum<2 11* order by offerdate desc SQL> / TO_CHAR(OFF OFFER_ID AMOUNT ----------- ---------- ---------- 26-Apr-2010 5 45 SQL> ed Wrote file afiedt.buf 1 select to_char(offerdate,'dd-Mon-yyyy'), 2 offer_id, 3 amount 4 from 5 offer 6 where 7 domain_id=1 8 and amount is not null 9 and 10 rownum<2 11* order by offerdate asc SQL> / TO_CHAR(OFF OFFER_ID AMOUNT ----------- ---------- ---------- 26-Apr-2010 5 45
Thank you in anticipationTry this
select to_char(offerdate,'dd-Mon-yyyy'), offer_id, amount from( select to_char(offerdate,'dd-Mon-yyyy'), offer_id, amount from offer where domain_id=1 and amount is not null order by offerdate asc) where rownum<2
Published by: user12984479 on April 27, 2010 04:34
-
I have placed several orders of Wal-Mart before today using Firefox without any problems. But today, nothing but problems. I tried for more than 4 hours, get this order to cross. I told cat line of Walmart and told me that I have to install Chrome to place an order. They don't answer when I asked if Walmart belonging to Chrome.
I deleted the cookies and cache and restarted but none of this has worked. While Chrome has that Firefox does not work? I tried Chrome before and he hated and had a devil of a time he get off my computer. I don't want to go there again.
I have attached a copy of the message that I get seems to indicate that it is a problem within Wal-Mart, but I said that it was with my browser.
I have a laptop Toshiba Satellite running Windows 7 Ultimate 64 bit and using Firefox 40.0.3.
Any suggestions would be greatly appreciated. Thank you.
Thanks for your reply. I just figured out the problem.
All started when I tried to pay my order at 13:00 this afternoon. I am persistent and don't give up easily. Five hours later, I found an error in their programming, which allowed me to add an item to my shopping cart that was a purchase in store only. But then when I went to pay for it, he became confused and wouldn't let me order but didn't tell me why.
I solved by moving all items in the basket to saved for later and then add one at a time, trying to get to the car after each addition. It took a while because there are 20 items. He had the same problem when I added the item in the store to the cart and tried to pay for it. So I deleted and purchased on Ebay.
Now I know probably as much if not more than any of their populations of the Chat line that can only be read on a book script.
It's a relief that I don't have to use Chrome. I really like Firefox and would not change.
-
G72-B66US laptop: Hp recovery disc order page does not work.
Order HP recovery disks page does not work. I returned including credit cards and it stops there. I did it several times over several days. Who should I contact to order discs?
For some strange reason, this often happens with Internet Explorer. You could try to install the Chrome browser, and try again.
https://www.Google.com/chrome/browser/desktop/
Or - you can use the telephone support.
http://welcome.HP.com/country/us/en/contact/phone_assist.html#section1
-
How can I cancel my order? because the founction of 'pen pressure' does not work...
I have a Cintiq Companion 2 and the stylus pressure works OK, but I've had problems. You use Windows of ink? (bottom left)
-
They sent me a serial number for a windows version of PS Elements when I ordered a mac version. The serial number does not work, it is not surprising, but they don' t seem to care. I tried the online chat and have been waiting for almost a day unanswered. What should I do?
Look here
-
As mentioned above does not work the Adobe Customer Support Portal link (to the good Student Edition order fulfillment).
After goingt to: www.adobe.com/go/eduverify and by clicking on the Adobe Customer Support Portal link a page saying: "" Adobe Customer Support Portal is an update of the system to implement major system improvements and will be temporarily unavailable starting at 15:00 DST of the Pacific on Friday, October 9".Today is August 10! Site is down for more than a year now!
Please help me, I want to just sign my Student Edition Lightroom 5 and get the serial number.
MattJimbo we had a maintenance period of this weekend. This impact on the availability of certain services. My apologies for the inconvenience.
-
Sorting does not work with ROW_NUMBER () OVER (ORDER BY
CREATE OR REPLACE PROCEDURE SP_SALES)
p_sales_id IN VARCHAR2,
p_rownnum_from in NUMBERS
p_rownnum_to in NUMBERS
p_sort_by IN VARCHAR2,
p_query ON SYS_REFCURSOR,
)
AS
v_query VARCHAR2 (32000);
v_sort_list VARCHAR2 (32000);
BEGIN
IF p_spv_sort_by IS NULL THEN
v_sort_list: = 'nom_donne ASC ";
ON THE OTHER
v_sort_list: = p_spv_sort_by;
END IF;
DBMS_OUTPUT. Put_line ('v_sort_list' | v_sort_list);
OPEN FOR P_query
SELECT sales_id
item_id,
order_num,
Employee_Name
nom_donne
dept_id,
manager_name,
NO_LIG
Of
(SELECT x.*,
ROW_NUMBER () OVER (ORDER BY v_sort_list) no_lig
OF (sales_id,
item_id,
order_num,
Employee_Name
nom_donne
dept_id,
manager_name,
Vaughan Williams order.
sale pol,
CA of the EMP,
WHERE pol.id = rvw.pr_order_id
AND ca.empid = pol.employee_id
(AND status = "SUP") x)
WHERE the arguments no_lig BETWEEN p_rownnum_from AND p_rownnum_to;
-ORDER by v_sort_list;
DBMS_OUTPUT. Put_line ('v_sort_list' | v_sort_list);
EXCEPTION
WHILE OTHERS THEN
DBMS_OUTPUT. PUT_LINE ('EX');
END;
END;
/
DISPLAY ERRORS
Sorting does not work. I'm doing something wrong here?
How to run for help below
declare
x SYS_REFCURSOR;
number of y;
BEGIN
SP_SALES ('70159_502', 1, 5, 'GIVEN_NAME' |') ASC',: x);
-dbms_output.put_line (: x);
END;Hello
According to the number of columns different, you can sort on and data types, it may be possible for you to include conditional logic in the existing statement without requiring dynamic sql code...
DTYLER_APP@pssdev2> var p_spv_sort_by varchar2(100) DTYLER_APP@pssdev2> DTYLER_APP@pssdev2> exec :p_spv_sort_by:='some other column' PL/SQL procedure successfully completed. P_SPV_SORT_BY ---------------------------------------------------------------------------------------- some other column DTYLER_APP@pssdev2> DTYLER_APP@pssdev2> WITH source AS 2 ( SELECT 'a' given_name, 'z' other_column from dual UNION ALL 3 SELECT 'b' given_name, 'y' other_column from dual UNION ALL 4 SELECT 'c' given_name, 'x' other_column from dual 5 ) 6 SELECT 7 given_name, 8 other_column, 9 ROW_NUMBER () 10 OVER ( 11 ORDER BY 12 CASE 13 WHEN :p_spv_sort_by IS NULL THEN given_name 14 WHEN :p_spv_sort_by = 'some other column' THEN other_column 15 END) 16 ROW_NUM 17 FROM 18 source 19 / G O ROW_NUM - - ---------- c x 1 b y 2 a z 3 3 rows selected. DTYLER_APP@pssdev2> exec :p_spv_sort_by:=NULL; PL/SQL procedure successfully completed. P_SPV_SORT_BY ---------------------------------------------------------------------------------------- DTYLER_APP@pssdev2> WITH source AS 2 ( SELECT 'a' given_name, 'z' other_column from dual UNION ALL 3 SELECT 'b' given_name, 'y' other_column from dual UNION ALL 4 SELECT 'c' given_name, 'x' other_column from dual 5 ) 6 SELECT 7 given_name, 8 other_column, 9 ROW_NUMBER () 10 OVER ( 11 ORDER BY 12 CASE 13 WHEN :p_spv_sort_by IS NULL THEN given_name 14 WHEN :p_spv_sort_by = 'some other column' THEN other_column 15 END) 16 ROW_NUM 17 FROM 18 source 19 / G O ROW_NUM - - ---------- a z 1 b y 2 c x 3 3 rows selected. DTYLER_APP@pssdev2>
But this would depend on the columns that you sort to be of the same data type or at least have the possibility of converting the same type of data without loss of the sort order.
DTYLER_APP@pssdev2> WITH source AS 2 ( SELECT 'a' given_name, sysdate - 2 other_column from dual UNION ALL 3 SELECT 'b' given_name, sysdate - 1 other_column from dual UNION ALL 4 SELECT 'c' given_name, sysdate other_column from dual 5 ) 6 SELECT 7 given_name, 8 other_column, 9 ROW_NUMBER () 10 OVER ( 11 ORDER BY 12 CASE 13 WHEN :p_spv_sort_by IS NULL THEN given_name 14 WHEN :p_spv_sort_by = 'some other column' THEN other_column 15 END) 16 ROW_NUM 17 FROM 18 source 19 / WHEN :p_spv_sort_by = 'some other column' THEN other_column * ERROR at line 14: ORA-00932: inconsistent datatypes: expected CHAR got DATE DTYLER_APP@pssdev2> WITH source AS 2 ( SELECT 'a' given_name, sysdate - 2 other_column from dual UNION ALL 3 SELECT 'b' given_name, sysdate - 1 other_column from dual UNION ALL 4 SELECT 'c' given_name, sysdate other_column from dual 5 ) 6 SELECT 7 given_name, 8 other_column, 9 ROW_NUMBER () 10 OVER ( 11 ORDER BY 12 CASE 13 WHEN :p_spv_sort_by IS NULL THEN given_name 14 WHEN :p_spv_sort_by = 'some other column' THEN TO_CHAR(other_column,'YYYYMMDDHH24MISS') 15 END) 16 ROW_NUM 17 FROM 18 source 19 / G OTHER_COLUMN ROW_NUM - -------------------- ---------- a 12-SEP-2011 15:04:19 1 b 13-SEP-2011 15:04:19 2 c 14-SEP-2011 15:04:19 3 3 rows selected.
HTH
David
-
Tab order does not work on the image Panel and group tags
I write code to control the tab on several tags such as "img", "Control Panel", "LinkButton",... and pie charts. When I run my program flash, tab indexing does not work. It works on the pie chart and "link button" tags, not on 'img', ' ', tags "group". I also tried to "activate the tab" on these fields and the true chilern tab, but no help.
on the other hand when I disable the tab on the pie chart, and a link button, yet the tab is activated. It seems no matter what I do about the tab order, it does not reflect when I run my program.
I really appreciate if someone could help me, I'm working with the sdk flex 4.1
In Flex, components that receive focus must implement IFocusManagerComponent. Most of the containers are not.
-
order by clause does not work in plsql cursor
I have a sql that works well in sqlplus, but when I add it to a cursor in plsql, it doesn't. Also, I discovered that it works very well in plsql if I remove the order by clause.
We cannot use "order by" clause in plsql?
I have to explicitly use the name of the column to select the cause for which I ' order by '?
Here is the work and not work code:
-Works fine in sqlplus
Select * from mgmt$ compliance_standard_rule where ((rule_iname comme '_SecRepRul %') OU))
(substr(rule_iname,9) in ('AUDIT_SYS_OPS'))) and target_type = "oracle_database" order of rule_iname
-Works fine in plsql
CURSOR c_rule_guids_database () IS
Select * from mgmt$ compliance_standard_rule where ((rule_iname comme '_SecRepRul %') OU))
(substr(rule_iname,9) in ('AUDIT_SYS_OPS'))) and target_type = "oracle_database."
);
-Does not work in plsql: PL/SQL: ORA-00907: lack the right parenthesis
CURSOR c_rule_guids_database () IS
Select * from mgmt$ compliance_standard_rule where ((rule_iname comme '_SecRepRul %') OU))
(substr(rule_iname,9) in ('AUDIT_SYS_OPS'))) and target_type = "oracle_database" order of rule_iname
);
Thanks for the help.Remove the parentheses around your return cursor:
SQL> declare 2 CURSOR c_rule_guids_database IS 3 (select * 4 from compliance_standard_rule 5 where ((rule_iname like '%_SecRepRul') 6 OR 7 (substr(rule_iname,9) in ('AUDIT_SYS_OPS')) 8 ) 9 and target_type = 'oracle_database' 10 order by rule_iname 11 ); 12 begin 13 null; 14 end; 15 / order by rule_iname * ERROR at line 10: ORA-06550: line 10, column 6: PL/SQL: ORA-00907: missing right parenthesis ORA-06550: line 3, column 5: PL/SQL: SQL Statement ignored SQL> declare 2 CURSOR c_rule_guids_database IS 3 select * 4 from compliance_standard_rule 5 where ((rule_iname like '%_SecRepRul') 6 OR 7 (substr(rule_iname,9) in ('AUDIT_SYS_OPS')) 8 ) 9 and target_type = 'oracle_database' 10 order by rule_iname 11 ; 12 begin 13 null; 14 end; 15 / PL/SQL procedure successfully completed.
-
Fuzzy search help (does not work if change the order of some 2 letters)
Hello
need help with search fuzzy. It's pretty simple - we use fuzzy search on varchar2 columns that contain the name and name. The problem is that I don't really understand why she can't find the name in some cases.
I want to get "Taekpaul". Then
where CONTAINS (first_name, 'fuzzy (TAEKPAUL)', 1) > 0 - work
where CONTAINS (first_name, 'fuzzy (TAEKPALU)', 1) > 0 - works (amended order to the last 2 letters)
When CONTAINS (first_name, 'fuzzy (TEAKPAUL)', 1) > 0 - does not work, see "Brahim" is completely different (changed to the 2nd and 3rd order)
How can I find 'Taekpaul', even if I get TEAKPAUL? Is she related to the index? As the text index must be created with different settings?
Thank you!
Published by: Maitreya2 on March 3, 2010 14:08Hello
I tried you have case, and I get the same results. I also tried with the soundex function "!" and gives me the result, so I tried this:
where CONTAINS(first_name,'fuzzy(!TEAKPAUL)',1) > 0
The difference is the "!" in front of the searchterm. Is this really the solution to your problem?
Herald tiomela
Superconsult.nl -
HP Laser Jet 1020 does not work. Order random print.
Original title: printer does not workMy hp laser jet 1020 printer has stopped printing of pages recently. Worked well for a long time but print only a few sites will... Thanks for your help...
You can ask the question in the following forums:
Printers and all-in-oneWindows Vista IT Prop - Windows Vista printing forumhttp://social.technet.Microsoft.com/forums/en/itprovistaprinting/threadsTutorials on the problem of printers:
Printer in Windows problems
http://Windows.Microsoft.com/en-us/Windows/help/printer-problems-in-WindowsThe tutorial consists of 3 parts:
Step 1:
Check the hardware
Step 2: Use a troubleshooting tool
Step 3: Update driversApplication Microsoft Support Fix It:
http://support.Microsoft.com/mats/printing_problems/en-usTry this Windows tutorials:
It consists of many themes that you can click and read the tutorials.
There also an Fix It application
http://Windows.Microsoft.com/en-us/Windows-Vista/troubleshoot-printer-problemsHere is the main link with: Support for Windows
Technical problems of Vista and troubleshooting - printing
http://support.Microsoft.com/ph/11732#tab11 -
I need help. I bought Dreamweaver Student and I wanted to register on the Adobe link . Unfortunately, the link does not work . Support via the phone number et chat I don't get . " I'm pretty upset by the absence of support for " ""no cloud user ' and think already by Paypal after return and deliver you of the program. I hope you can help me
The question was made. You will find all the necessary information:
Bestellvorgang as Adobe Student and Teacher Edition | EMEA, APAC
Maybe you are looking for
-
Office Jet Pro 8500 black ink cartridge will not print
black ink does not print and alignment fails. I cleaned the printheads through all the levels. The colors print perfectly but black will not print. I have reset the printer, run test pages, but still no black ink and unity trys to align, but fails
-
A60 - 672 HELP with graphics card
I want to upgrade my graphics card but know nothing about it here my laptop HTTP://UK.COMPUTERS.TOSHIBA-EUROPE.COM/CGI-BIN/TOSHIBACSG/SELECTED_PRODUCT_OPTION.JSP?SERVICE=UK&PRODUCT_ID= 97189 & DISC_MODEL = 0 And this is the card that I want to buy ht
-
Please include Double Tap to wake up to Moto G
Please add a "double tap on the screen to wake" feature in motorcycle G & Moto X since both have a key to lock & unlock the device like Samsung have two keys doing the same work... so I recommend an update, including a double tap to wake characterist
-
I use Windows 8, installed Labview student edition of 2014, and then downloaded NOR-DAQmx, have however not all icons I expected to see in a YouTube video. My question is, how and where to get the respective Sub DAQmx icons?
-
How to run the stages of synchronously in Teststand?
Hi all I want to run a few steps synchronously, such asno step for affecting some conditions to DUT input, and a step for a few tests of measurement points under the conditions.and of the measurement is in real time. So I would like to know if this f