Need help in order to recovery my Satellite L450-16Q
My laptop had a virus so I used the Product Recovery disk that came with it, thinking that it would fix it but it ended up erasing the whole of my computer even windows 7.
So now I have a computer I can't use I have bought windows 7 directly from microsoft which I have downloaded and tried to install but it doesn't work.
I have also bought the product recovery disks from toshiba's backup media site in hope that they will work.
Can anyone help/advise on what I need to do.
Thank you
Sharron
Hello
The whole story is a little bit confusing for me. So lets see what you wrote:
>... thinking that it would fix it but it ended up erasing the whole of my computer even windows 7.
Thinking is wrong. What you need is exact info about recovery installation and this can be found in users manuals document. Recovery disc is not like Microsoft installation disc and cannot be used for repair. Recovery disc contains recovery image and can be used for clean OS installation (recovery image installation) only.
> So now I have a computer I can't use
Why you cannot use it? Recovery image installation installs OS again. Which OS is installed after running recovery image installation?
> I have also bought the product recovery disks from toshiba's backup media site
But why if you already have recovery disc that you have used at the beginning of the whole story?
What you need to do is to use this original disc for OS installation.
-start your notebook and press F12 several times to enter BOOT menu
-when the menu is shown put recovery disc into ODD
-select CD/DVD drive in the menu and press ENTER
-follow the menu on the screen
After recovery image installation you will have factory settings again and everything should be OK.
More questions?
Similar Messages
-
Need help in oracle data recovery
Friends ,i need help in oracle data recovery.
I had an oracle 8i database running on windows.
For some reason Windows operating system crashed.
It is not booting up.
I dont have current backups.But my database physical files are in the disk.
Controlfile,datafiles and redo log files are there.
Is there any way I can recover my database?
Please help in this issue.
regards
AjithHI citrus,
thanks for the reply.
I have installed database 9i on the same PC after O/S reinstallation.
You are saying that ,I need to keep oracle root folder same as that of my old installation ,and copy control files,redo log and data files in exactly same folders as that of old database,and then start the database?
thank you for your patience and support.
regards.,
Ajith -
I had to put my computer by together without migration or time machine I NEED help with order of the files?
Hi, where are these other files exactly?
-
Need help in order to buy Toshiba notebook from Toshiba directly
Good morning.
I want to buy a laptop in http://www.toshibadirect.com/ and chose the product,
I have credit card.
I have a family who will receive the laptop
What I want is someone advise me on the east or purchase I need help to complete the purchase.
Personal toshiba to help me to complete this purchase. .
Thanks
Note:
I live in Peru.
I have some queries about the product.Hi
First of all you should know that this is a user to user forum. So you will not find any people from Toshiba here.
Secondly I have checked the page which you have posted in the posting and find this phone number. Call 800-316-0920 for shopping assistance.
Otherwise I recommend searching for some online dealers who provide the notebook which you want to buy.
Good luck -
Need help with ORDER BY clause
Hey,
I have a table:
Name: Year:
Eagle 2000
Tiger 2001
Eagle 2002
Lion 2006
Lion 1999
Fox 1991
Lion 1995
I need a query which will return in such order:
Name: Year: Position:
Eagle 2000 1
Eagle 2002 2
Fox 1991 1
Lion 1995 1
Lion 1999 2
Lion 2006 3
Tiger 2001 1
So, of course to get Name and Year in this order is quite easy:
select Name, Year from Animals order by Name, Year;
but how about Position, is there a way to count it with SQL?
any help is welcome,
SilvestrasSQL> with rt as
2 (select 'Eagle' nm, 2000 yr from dual union all
3 select 'Tiger', 2001 from dual union all
4 select 'eagle', 2002 from dual union all
5 select 'Lion', 2006 from dual union all
6 select 'Lion', 1999 from dual union all
7 select 'Fox', 1991 from dual union all
8 select 'Lion', 1995 from dual)
9 select nm,yr,row_number() over(partition by (nm) order by nm,yr) position from rt;
NM YR POSITION
Eagle 2000 1
Fox 1991 1
Lion 1995 1
Lion 1999 2
Lion 2006 3
Tiger 2001 1
eagle 2002 1
7 rows selected.
SQL> with rt as
2 (select 'Eagle' nm, 2000 yr from dual union all
3 select 'Tiger', 2001 from dual union all
4 select 'eagle', 2002 from dual union all
5 select 'Lion', 2006 from dual union all
6 select 'Lion', 1999 from dual union all
7 select 'Fox', 1991 from dual union all
8 select 'Lion', 1995 from dual)
9 select nm,yr,row_number() over(partition by lower(nm) order by nm,yr) position from rt;
NM YR POSITION
Eagle 2000 1
eagle 2002 2
Fox 1991 1
Lion 1995 1
Lion 1999 2
Lion 2006 3
Tiger 2001 1
7 rows selected.
SQL> -
[10g] Need help with order by clause in hierarchical query
I have the following sample data:
CREATE TABLE bill_test1
( parent_part CHAR(25)
, child_part CHAR(25)
, line_nbr NUMBER(5)
, qty_per NUMBER(9,5)
INSERT INTO bill_test1 VALUES ('ABC-1','ABC-10',100,1);
INSERT INTO bill_test1 VALUES ('ABC-1','ABC-20',200,2);
INSERT INTO bill_test1 VALUES ('ABC-1','ABC-30',300,3);
INSERT INTO bill_test1 VALUES ('ABC-1','HARDWARE-1',401,10);
INSERT INTO bill_test1 VALUES ('ABC-1','HARDWARE-2',402,5);
INSERT INTO bill_test1 VALUES ('ABC-10','ABC-155',100,2);
INSERT INTO bill_test1 VALUES ('ABC-10','HARDWARE-1',200,1);
INSERT INTO bill_test1 VALUES ('ABC-155','RAW-2',100,4.8);
INSERT INTO bill_test1 VALUES ('ABC-155','HARDWARE-3',200,3);
INSERT INTO bill_test1 VALUES ('ABC-20','RAW-1',100,10.2);
INSERT INTO bill_test1 VALUES ('ABC-30','RAW-3',100,3);And the query below gives me exactly what I want, in the order I want it. However, I am wondering if there is a way to get this order without creating the SEQ column, since I don't need it in my results
SELECT part_nbr
, parent_part
, child_part
FROM (
SELECT CONNECT_BY_ROOT b.parent_part AS part_nbr
, b.parent_part
, b.child_part
, SYS_CONNECT_BY_PATH(b.line_nbr,' ') AS seq
FROM bill_test1 b
, dual
CONNECT BY parent_part = PRIOR child_part
WHERE part_nbr = 'ABC-1'
ORDER BY seq
Results of above query, except with SEQ included in SELECT (just to show what I'm sorting off of):
PART_NBR PARENT_PART CHILD_PART SEQ
ABC-1 ABC-1 ABC-10 100
ABC-1 ABC-10 ABC-155 100 100
ABC-1 ABC-155 RAW-2 100 100 100
ABC-1 ABC-155 HARDWARE-3 100 100 200
ABC-1 ABC-10 HARDWARE-1 100 200
ABC-1 ABC-1 ABC-20 200
ABC-1 ABC-20 RAW-1 200 100
ABC-1 ABC-1 ABC-30 300
ABC-1 ABC-30 RAW-3 300 100
ABC-1 ABC-1 HARDWARE-1 401
ABC-1 ABC-1 HARDWARE-2 402Hi,
As long as there's only one root, you can say ORDER SIBLINGS BY, but you can't do that in a sub-query (well, you can, but usually there's no point in doing it in a sub-query). If the CONNECT BY is being done in a sub-query, there is no guarantee that the main query will preserve the hierarchical order that the sub-query provides.
The query you posted doesn't require a suib-query, so you can say:
SELECT CONNECT_BY_ROOT b.parent_part AS part_nbr
, b.parent_part
, b.child_part
--, SYS_CONNECT_BY_PATH(b.line_nbr,' ') AS seq
FROM bill_test1 b
WHERE CONNECT_BY_ROOT b.parent_part = 'ABC-1'
CONNECT BY parent_part = PRIOR child_part
ORDER SIBLINGS BY b.line_nbr
;I said the query you posted doesn't require a sub-query. It also doesn't require dual, so I suspect what you posted is a simplification of what you're really doing, and that may need a sub-query. In particular, if you intend to GROUP BY part_nbr, then you need the sub-query. We can repeat the CONNECT_BY_ROOT expression in the WHERE clause (or, now that I think about it, use a START WITH clause instead of WHERE), but, for some reason, we can't use CONNECT_BY_ROOT in a GROUP BY clause; we need to compute CONNECT_BY_ROOT in a sub-query, give it a name (like part_nbr), and GROUP BY that column in a super-query.
This assumes that there is only one root node. ORDER SIBLINGS BY means just that: children of a common parent will appear in order, but the root nodes, who have no parents, will not necessarily be in order.
Here's what I meant by using START WITH instead of WHERE:
SELECT CONNECT_BY_ROOT b.parent_part AS part_nbr
, b.parent_part
, b.child_part
--, SYS_CONNECT_BY_PATH(b.line_nbr,' ') AS seq
FROM bill_test1 b
START WITH b.parent_part = 'ABC-1'
CONNECT BY parent_part = PRIOR child_part
ORDER SIBLINGS BY b.line_nbr
;This should be much more efficient, because it narrows down the results before you waste time getting their descendants.
Using a START WITH clause here is analagous to me sending you an e-mail, saying "Come to a meeting a my office at 3:00."
Using a WHERE clause here is analagous to me sending an e-mail to everyone in the company, saying "Come to a meeting a my office at 3:00", and then, as people get here, telling everyone except you that they can go back.
ORDER SIBLINGS BY was introduced in Oracle 9.
Edited by: Frank Kulash on Dec 9, 2010 2:39 PM
Added version with START WITH clause -
Need help on order by in PL/SQL
Hi all,
I know this problem would have occurred a lot of times before, but me being a beginner want to know all the possible solution for this one.Now I am having a procedure in which I am declaring a cursor to select rows from a table
create or replace procedure call_me(sortstring IN Varchar2(200))
IS
cursor cur is
select * from EMP order by (sortstring);
BEGIN
for rec in cur
Loop
DBMS_OUTPUT.PUT_LINE(cur.EMPNAME)
END LOOP;
END;
Assume the EMP table has
EMPID,EMPNAME,EMPCITY,EMPDEPT as its fields
I am calling the procedure like
exec procedure_call('EMPCITY,EMPDEPT')
but I get an unsorted output, worse still
exec procedure_call('EMPCITY')
itself is not working.If I hard-code the order by columns in the query it is working, but when I pass it as argument it is not working.Please help me resolve this issue.In your case,
satyaki>
satyaki>select * from v$version;
BANNER
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Prod
PL/SQL Release 10.2.0.3.0 - Production
CORE 10.2.0.3.0 Production
TNS for 32-bit Windows: Version 10.2.0.3.0 - Production
NLSRTL Version 10.2.0.3.0 - Production
Elapsed: 00:00:00.33
satyaki>
satyaki>select * from emp order by '&str';
Enter value for str: empno
old 1: select * from emp order by '&str'
new 1: select * from emp order by 'empno'
EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO
7777 SOURAV SLS 14-SEP-08 45000 3400 10
7499 Travor SALESMAN 7698 20-FEB-81 1600 300 30
7521 WARD SALESMAN 7698 22-FEB-81 1250 500 30
7566 JONES MANAGER 7839 02-APR-81 2975 20
7654 MARTIN SALESMAN 7698 28-SEP-81 1250 1400 30
7698 BLAKE MANAGER 7839 01-MAY-81 2850 30
7782 CLARK MANAGER 7839 09-JUN-81 4450 10
7788 SCOTT ANALYST 7566 19-APR-87 3000 20
7839 KING PRESIDENT 17-NOV-81 7000 10
7844 TURNER SALESMAN 7698 08-SEP-81 1500 0 30
7876 ADAMS CLERK 7788 23-MAY-87 1100 20
EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO
7900 JAMES CLERK 7698 03-DEC-81 950 30
7902 FORD ANALYST 7566 03-DEC-81 3000 20
13 rows selected.
Elapsed: 00:00:01.00
satyaki>In our case,
satyaki>select * from emp order by &str;
Enter value for str: empno
old 1: select * from emp order by &str
new 1: select * from emp order by empno
EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO
7499 Travor SALESMAN 7698 20-FEB-81 1600 300 30
7521 WARD SALESMAN 7698 22-FEB-81 1250 500 30
7566 JONES MANAGER 7839 02-APR-81 2975 20
7654 MARTIN SALESMAN 7698 28-SEP-81 1250 1400 30
7698 BLAKE MANAGER 7839 01-MAY-81 2850 30
7777 SOURAV SLS 14-SEP-08 45000 3400 10
7782 CLARK MANAGER 7839 09-JUN-81 4450 10
7788 SCOTT ANALYST 7566 19-APR-87 3000 20
7839 KING PRESIDENT 17-NOV-81 7000 10
7844 TURNER SALESMAN 7698 08-SEP-81 1500 0 30
7876 ADAMS CLERK 7788 23-MAY-87 1100 20
EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO
7900 JAMES CLERK 7698 03-DEC-81 950 30
7902 FORD ANALYST 7566 03-DEC-81 3000 20
13 rows selected.
Elapsed: 00:00:00.31
satyaki>/
Enter value for str: empno,job
old 1: select * from emp order by &str
new 1: select * from emp order by empno,job
EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO
7499 Travor SALESMAN 7698 20-FEB-81 1600 300 30
7521 WARD SALESMAN 7698 22-FEB-81 1250 500 30
7566 JONES MANAGER 7839 02-APR-81 2975 20
7654 MARTIN SALESMAN 7698 28-SEP-81 1250 1400 30
7698 BLAKE MANAGER 7839 01-MAY-81 2850 30
7777 SOURAV SLS 14-SEP-08 45000 3400 10
7782 CLARK MANAGER 7839 09-JUN-81 4450 10
7788 SCOTT ANALYST 7566 19-APR-87 3000 20
7839 KING PRESIDENT 17-NOV-81 7000 10
7844 TURNER SALESMAN 7698 08-SEP-81 1500 0 30
7876 ADAMS CLERK 7788 23-MAY-87 1100 20
EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO
7900 JAMES CLERK 7698 03-DEC-81 950 30
7902 FORD ANALYST 7566 03-DEC-81 3000 20
13 rows selected.
Elapsed: 00:00:00.18
satyaki>So, capitalizing this ->
satyaki>
satyaki>declare
2 cursor cur
3 is
4 select *
5 from EMP
6 order by &sortstring;
7
8 rec cur%rowtype;
9 begin
10 for rec in cur
11 Loop
12 DBMS_OUTPUT.PUT_LINE(rec.ENAME);
13 END LOOP;
14 END;
15 /
Enter value for sortstring: empno,job
old 6: order by &sortstring;
new 6: order by empno,job;
Travor
WARD
JONES
MARTIN
BLAKE
SOURAV
CLARK
SCOTT
KING
TURNER
ADAMS
JAMES
FORD
PL/SQL procedure successfully completed.
Elapsed: 00:00:00.84
satyaki>Got my point?
Regards.
Satyaki De. -
Need help with installing Windows XP on Satellite A60
I have toshiba satellite A60 and I need to know steps of reformatting the hard drive and installing Winxp. what do i need and how?
also..how can i save all the files and emails on Microsoft outlook? i'm not well experienced with this.Hi,
the installation of XP is very simple. You just have to put the CD in and start the installation, the installation wizard is guiding you through the whole process. A little advice: when it comes to partition the drive, you should delete the old partition, create a new one and format it with ntfs. Dont worry the installation wizard will guide you very detailed trough that process so it will go very easily.
Regarding your backup:
Thats my way to backup my files:
I have a external USB-HDD drive and I put all my files on it so I can copy them back after I install a new system. To save your outlook you can check this site:
http://www.sitedeveloper.ws/tutorials/outlook.htm
They describe very nice how to backup you outlook.
Good luck
Greets -
Need help with order booking tutorial
Hi
I am new to OracleFusion.
Started Learning By practising OrderBooking tutorial for 10g.
I am practising parellel branching in the tutorial .
I ve invoked Rapid distributors service in branch 1 of the flow activity.
and
i ve invoked Select manufacturing service in branch 2 of flow activity.
I ve deployed order booking service,rapid distributed service,select manufacturing service in the server.
Select manufacturing service is an asynchronous service .for this service to be complete it requires user to manually set price for the item ordered.
So I accesed SelectManufacturinUI in browser as instructed in book.The problem is tht it is directing me to login page where User id and password should be submitted.
In the tutorial no info is given regarding login details fot this page.Hence i am not able to set price for order.
So the Select manufacturing service is not completed ..hence i am not able to move further in the tutorial..
Kindly help with this..if any one has faced same prblm
thanksHi
I got the answer. Just posting it so that it helps someone
User id i tried : jcooper
password : Bpel console startup password -
Need help with Order by statement
I have a report which has an order by statement to order a varchar2 field in ascending order.
The report sorts the records correctly but if I rerun the report, the records with the same values in the column that I order by, do not maintain the same order as was in the report's 1st run.
The records will still be sorted in ascending order but those records that have the same values interchange positions each time I run the report.
Is this ok or is there a way of making records with same values maintain the same order in all the report runs? Please assist. Thanks.user8655468 wrote:
but those records that have the same values interchange positions each time I run the report.
Is this ok or is there a way of making records with same values maintain the same order in all the report runs? Please assist. Thanks.Hello,
It's normal those are same values may interchange at each run. you can add another column in order by clause. That
Order by column1,column2 may add another column3 -- this will maintain always same but column 1,2,3 have same value , it will may interchange.
Hope this helps
Hamid -
Test Data:
CREATE TABLE "TEST_GMU"
( "PZINSKEY" VARCHAR2(255) NOT NULL ENABLE,
"PXCREATEDATETIME" DATE,
"PXURGENCYASSIGN" NUMBER(18,0),
"WORK_PXURGENCYWORK" NUMBER(18,0),
"MASTERACCNTFIRMCUSTID" VARCHAR2(255 CHAR)
) SEGMENT CREATION IMMEDIATE
PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
insert into test_gmu values ('ASSIGN-WORKBASKET SCHWAB-ACE-SERVICEREQUEST-WORK-ACCTMAINT AM-12858!AMADVISORSERVICESFLOW','16-JUL-13 15.55.57.000000 PM',0,40,'2531215');
insert into test_gmu values ('ASSIGN-WORKBASKET SCHWAB-ACE-SERVICEREQUEST-WORK-ACCTMAINT AM-12859!AMADVISORSERVICESFLOW','16-JUL-13 15.01.22.000000 PM',0,40,'742254777');
insert into test_gmu values ('ASSIGN-WORKBASKET SCHWAB-ACE-SERVICEREQUEST-WORK-ACCTMAINT AM-12860!AMADVISORSERVICESFLOW','16-JUL-13 15.01.23.000000 PM',0,40,'2531215');
insert into test_gmu values ('ASSIGN-WORKBASKET SCHWAB-ACE-SERVICEREQUEST-WORK-ACCTMAINT AM-12861!AMADVISORSERVICESFLOW','16-JUL-13 15.03.55.000000 PM',0,40,'2568091');
insert into test_gmu values ('ASSIGN-WORKBASKET SCHWAB-ACE-SERVICEREQUEST-WORK-ACCTMAINT AM-12862!AMADVISORSERVICESFLOW','16-JUL-13 15.03.56.000000 PM',0,40,'742254777');
insert into test_gmu values ('ASSIGN-WORKBASKET SCHWAB-ACE-SERVICEREQUEST-WORK-ACCTMAINT AM-12863!AMADVISORSERVICESFLOW','16-JUL-13 15.03.57.000000 PM',0,40,'2568091');
insert into test_gmu values ('ASSIGN-WORKBASKET SCHWAB-ACE-SERVICEREQUEST-WORK-ACCTMAINT AM-12864!AMADVISORSERVICESFLOW','16-JUL-13 15.06.29.000000 PM',0,40,'742254777');
insert into test_gmu values ('ASSIGN-WORKBASKET SCHWAB-ACE-SERVICEREQUEST-WORK-ACCTMAINT AM-12865!AMADVISORSERVICESFLOW','16-JUL-13 15.06.31.000000 PM',0,40,'2568091');
insert into test_gmu values ('ASSIGN-WORKBASKET SCHWAB-ACE-SERVICEREQUEST-WORK-ACCTMAINT AM-12866!AMADVISORSERVICESFLOW','16-JUL-13 15.06.32.000000 PM',0,40,'742254777');
The output required is like below
1. AM-12859 BXYZAB CO. 742254777 07/16/2013 15:01:21
2. AM-12862 BXYZAB CO. 742254777 07/16/2013 15:03:56
3. AM-12864 BXYZAB CO. 742254777 07/16/2013 15:06:27
4. AM-12866 BXYZAB CO. 742254777 07/16/2013 15:06:31
5. AM-12858 WHIJKL CO. 2531215 07/16/2013 15:01:16 The values of this timestamp is actually '16-JUL-13 15.55.57 in datbase
6. AM-12860 WHIJKL CO. 2531215 07/16/2013 15:01:22
7. AM-12861 SIJKLM CO. 2568091 07/16/2013 15:03:54
8. AM-12863 SIJKLM CO. 2568091 07/16/2013 15:03:56
9. AM-12865 SIJKLM CO. 2568091 07/16/2013 15:06:30
I could work this out till below:
ASSIGN-WORKBASKET SCHWAB-ACE-SERVICEREQUEST-WORK-ACCTMAINT AM-12859!AMADVISORSERVICESFLOW 7/16/2013 3:01:22 PM 0 40 742254777
ASSIGN-WORKBASKET SCHWAB-ACE-SERVICEREQUEST-WORK-ACCTMAINT AM-12862!AMADVISORSERVICESFLOW 7/16/2013 3:03:56 PM 0 40 742254777
ASSIGN-WORKBASKET SCHWAB-ACE-SERVICEREQUEST-WORK-ACCTMAINT AM-12864!AMADVISORSERVICESFLOW 7/16/2013 3:06:29 PM 0 40 742254777
ASSIGN-WORKBASKET SCHWAB-ACE-SERVICEREQUEST-WORK-ACCTMAINT AM-12866!AMADVISORSERVICESFLOW 7/16/2013 3:06:32 PM 0 40 742254777
ASSIGN-WORKBASKET SCHWAB-ACE-SERVICEREQUEST-WORK-ACCTMAINT AM-12861!AMADVISORSERVICESFLOW 7/16/2013 3:03:55 PM 0 40 2568091
ASSIGN-WORKBASKET SCHWAB-ACE-SERVICEREQUEST-WORK-ACCTMAINT AM-12863!AMADVISORSERVICESFLOW 7/16/2013 3:03:57 PM 0 40 2568091
ASSIGN-WORKBASKET SCHWAB-ACE-SERVICEREQUEST-WORK-ACCTMAINT AM-12865!AMADVISORSERVICESFLOW 7/16/2013 3:06:31 PM 0 40 2568091
ASSIGN-WORKBASKET SCHWAB-ACE-SERVICEREQUEST-WORK-ACCTMAINT AM-12860!AMADVISORSERVICESFLOW 7/16/2013 3:01:23 PM 0 40 2531215
ASSIGN-WORKBASKET SCHWAB-ACE-SERVICEREQUEST-WORK-ACCTMAINT AM-12858!AMADVISORSERVICESFLOW 7/16/2013 3:55:57 PM 0 40 2531215
with order by masteraccntfirmcustid desc ,pxcreatedatetime
But one of the developer told me masteraccntfirmcustid should be asc
This resultset is supposed to be ordered by
order by masteraccntfirmcustid ,pxurgencyassign desc NULLS LAST ,work_pxurgencywork desc NULLS LAST,pxcreatedatetime
in the test data I have been given pxurgencyassign and work_pxurgencywork is same for all the records
Could you please help?
Thanks,
swapnilthe results of the query are not matching the data in the table. like ....
1. BXYZAB CO.
2. BXYZAB CO.
3. BXYZAB CO. -
Need help on Order by Condition
hi, I have a generic column in the table and value can be jan08,feb08................dec11 or YR08,YR09......YR11
i need a order by condition based on the parm selected.
I tried like this but gives me error.
select x
from t
order by decode(&p_cal,'month',(to_number(substr(trim(t), -2)), TO_DATE(substr(trim(t), 1,3)),''MON'')),'year',1);
Thanks
--KHi,
Whatever you want, you'll stay in trouble anyway (or the guy maintaining your code when you have retired), since you store year in 2 digits...
I borrowed Salim's suggestion, and see what happens:
MHO%xe> WITH t AS
2 (SELECT 'dec11' m
3 FROM DUAL
4 UNION ALL
5 SELECT 'feb08'
6 FROM DUAL
7 UNION ALL
8 SELECT 'YR08'
9 FROM DUAL
10 UNION ALL
11 SELECT 'jan08'
12 FROM DUAL)
13 SELECT CASE
14 WHEN INSTR (m, 'YR', 1) = 0
15 THEN TO_DATE (m, 'monYYYY')
16 ELSE TO_DATE (SUBSTR (m, -2), 'YYYY')
17 end m1
18 , CASE
19 WHEN INSTR (m, 'YR', 1) = 0
20 THEN TO_DATE (m, 'monRRRR')
21 ELSE TO_DATE (SUBSTR (m, -2), 'RRRR')
22 end m2
23 from t
24 order by
25 CASE
26 WHEN INSTR (m, 'YR', 1) = 0
27 THEN TO_DATE (m, 'monYYYY')
28 ELSE TO_DATE (SUBSTR (m, -2), 'YYYY')
29 END;
M1 M2
01-01-0008 00:00:00 01-01-2008 00:00:00
01-02-0008 00:00:00 01-02-2008 00:00:00
01-05-0008 00:00:00 01-05-2008 00:00:00
01-12-0011 00:00:00 01-12-2011 00:00:00How can you even tell the right CENTURY you're in here?
How will you create reliable reports/overviews/aggregations etc.?
It's 2009 already and still people are using strings to store dates??
Still people only use 2 digits for a year??
Still people refuse to use the DATE functionality Oracle offers?
This 'generic thing' s**ks major/is a very bad approach..you will ALWAYS run into trouble and it will ALWAYS perform less efficient compared to using the right datatype.
DATES are DATES, and therefore they are NOT 'generic strings we can play with without any trouble'.
You might get away with it temporarily, but it will haunt you ( or 'the guy after you' ) eventually.
So, like SomeoneElse already stated: fix your datamodel.
Edited by: hoek on May 4, 2009 10:01 PM some minor changes -
Need help restoring order of songs on albums
Please help me!!!
For some reason, all the songs on my albums are playing/displaying in alphabetical order!!! I have no idea how this happened. Can you tell me how to fix this?
(For example, for some reason now when I open an artist's album, all the songs are displayed and played in either ascending or descending order alphabetically.)If you have the track number in the ID tag you can just resort by that column in iTunes.
If you can't see the track number column right click teh header bar to add it -
Need Help with Order import corrections
Hi Experts,
I 'am trying to edit the data entered into the interface tables for a failed order import through the corrections window. I made changes to the error attribute, say - Inventory_item_id for lines and saved the changes. When I click on "Validate", I always get the error: "Error You are trying to insert an existing order or update an order that does not exist. Please enter a correct operation code." I get the same error for "UPDATE" and "CREATE" and blank values for "Operation Code".
Can you please guide me on how to use the corrections window to import a failed order.
Thanks,
GanapathiI 'am not certain whether I 'am using the corrections window incorrectly or this is a bug. Please suggest. I 'am on 12.0.6. The "Import" button remains disabled and the "Validate" button always fails. Any inputs on this will be immensely helpful.
Thanks,
Ganapathi -
Need help re ordering copies of photobook
I recently created, ordered and received a photo book created within iPhoto. People are asking me about ordering copies. How do I find information about this? I'm really frustrated that this is proving to be a headache. What is wrong with Apple? It's a simple question and should be simple to find the answer.
Thanks for putting up with my venting. Would appreciate anyone who can point me in the right direction to get my question answered.
PatThe same as the first one. There are savings on shipping - i.e if you order one copy or 10 the shipping is the same.
As we have no idea what country you are in, select your country from this list
http://store.apple.com/us/help/print_products/routing
For more
Maybe you are looking for
-
Can we open and close Posting period for HR module
Dear All , Can someone please tell me is there any option available to open and close Posting period for HR Module.We have In Finance and MM. Cheers Balaji Dhanavel
-
Windows Update on VMs seems to only work one at a time
I have a handful of Win 2012 R2 VMs (running on ESXi) I've inherited. I've tried 3 or 4 times to update them now since taking them over, and noticed the strangest thing - only one of them will download updates at a time. If I start the update on all
-
Prime 1.3 can't updates switches and wlc
Hello. I have Prime 1.3, two WLC 5508 and 8 switches 2960s I try update my devices through Prime, but I can't. When I start "Upgrade Analysis" and select switche (Catalyst WS-C2960S-24PS-L) and image (c2960s-universalk9-mz.150-2.SE2.bin) then click t
-
How to disable or grey out a link in detailed Navigation
Hi All, We have requirement in which few of the links in are to be displayed as greyed out or disabled in detailed navigation and in navigational pages. This is to stop the users from accessing the link for sometime say for a week or so. I have manag
-
Display oddity- What in the world?
A grand total of two times, the screen on my MacBook Pro (13' Mid 2010) has demonstrated the symptom in the picture below. Both times, in conjunction with Mail.app being in use and the "frontmost" application. Quitting Mail would remove part of the