Click here to Skip to main content
16,005,038 members
Home / Discussions / Database
   

Database

 
QuestionSQL Server 2000, Collation Pin
eggsovereasy29-May-07 5:08
eggsovereasy29-May-07 5:08 
Questionso I want to filter only input text. how it possible... Pin
Piyush Vardhan Singh28-May-07 23:33
Piyush Vardhan Singh28-May-07 23:33 
QuestionHow to export hsqldb into sql serverdb Pin
DON34528-May-07 20:44
DON34528-May-07 20:44 
AnswerRe: How to export hsqldb into sql serverdb Pin
Mike Dimmick29-May-07 11:32
Mike Dimmick29-May-07 11:32 
QuestionOracle 9i Master Detail Pagination Pin
K.P.Kannan28-May-07 19:43
K.P.Kannan28-May-07 19:43 
AnswerRe: Oracle 9i Master Detail Pagination Pin
Harini N K28-May-07 20:05
Harini N K28-May-07 20:05 
GeneralRe: Oracle 9i Master Detail Pagination Pin
K.P.Kannan28-May-07 20:13
K.P.Kannan28-May-07 20:13 
GeneralRe: Oracle 9i Master Detail Pagination Pin
K.P.Kannan29-May-07 0:54
K.P.Kannan29-May-07 0:54 
CREATE TABLE t1(col1 NUMBER)
CREATE TABLE t2(col1 NUMBER,col2 NUMBER)
INSERT INTO t1 VALUES(1);INSERT INTO t1 VALUES(2);INSERT INTO t1 VALUES(3);
INSERT INTO t1 VALUES(4);INSERT INTO t1 VALUES(5);INSERT INTO t1 VALUES(6);
INSERT INTO t2 VALUES(1,1);INSERT INTO t2 VALUES(2,1);INSERT INTO t2 VALUES(3,1);INSERT INTO t2 VALUES(4,1);INSERT INTO t2 VALUES(5,1);INSERT INTO t2 VALUES(6,1);INSERT INTO t2 VALUES(1,2);INSERT INTO t2 VALUES(3,2);INSERT INTO t2 VALUES(4,2);INSERT INTO t2 VALUES(6,2);INSERT INTO t2 VALUES(1,3);
INSERT INTO t2 VALUES(3,3);INSERT INTO t2 VALUES(6,3);

SELECT col1, col2 FROM t2 d WHERE col1 IN
(SELECT col1 FROM
(SELECT ROWNUM AS rownumber1,col1,col2 FROM t2 WHERE col1 IN
(SELECT col1 FROM (SELECT ROWNUM AS rownumber,col1 FROM t1) WHERE rownumber<=3)--WHERE c.col1=col1
)WHERE rownumber1<=2 AND d.col1=col1)

I want a query which will produce the following result.I just tried with the above one which is failing(no result or not compiling).

1 1
1 2
2 1
3 1
3 2
GeneralRe: Oracle 9i Master Detail Pagination Pin
Harini N K29-May-07 1:08
Harini N K29-May-07 1:08 
GeneralRe: Oracle 9i Master Detail Pagination Pin
Harini N K30-May-07 19:35
Harini N K30-May-07 19:35 
GeneralRe: Oracle 9i Master Detail Pagination Pin
K.P.Kannan30-May-07 20:12
K.P.Kannan30-May-07 20:12 
QuestionInsert Multiple Rows on Access Pin
AnhTin28-May-07 18:27
AnhTin28-May-07 18:27 
AnswerRe: Insert Multiple Rows on Access Pin
Navneet Hegde29-May-07 1:51
Navneet Hegde29-May-07 1:51 
AnswerRe: Insert Multiple Rows on Access Pin
Mike Dimmick29-May-07 11:33
Mike Dimmick29-May-07 11:33 
QuestionMySQL basics... Pin
Tzumer Edo28-May-07 4:08
Tzumer Edo28-May-07 4:08 
AnswerRe: MySQL basics... Pin
Giorgi Dalakishvili28-May-07 6:49
mentorGiorgi Dalakishvili28-May-07 6:49 
Questionexecuting procedure via ODBC Connection Pin
apoorva_raje28-May-07 1:28
apoorva_raje28-May-07 1:28 
AnswerRe: executing procedure via ODBC Connection Pin
Colin Angus Mackay28-May-07 1:53
Colin Angus Mackay28-May-07 1:53 
GeneralRe: executing procedure via ODBC Connection Pin
apoorva_raje28-May-07 2:06
apoorva_raje28-May-07 2:06 
AnswerRe: executing procedure via ODBC Connection Pin
ash0428-May-07 19:52
ash0428-May-07 19:52 
AnswerRe: executing procedure via ODBC Connection Pin
andyharman28-May-07 23:59
professionalandyharman28-May-07 23:59 
GeneralRe: executing procedure via ODBC Connection Pin
apoorva_raje29-May-07 2:00
apoorva_raje29-May-07 2:00 
QuestionHow to call an oracle stored procedure from sql server Pin
saurabh7628-May-07 0:52
saurabh7628-May-07 0:52 
AnswerRe: How to call an oracle stored procedure from sql server Pin
Mike Dimmick29-May-07 11:38
Mike Dimmick29-May-07 11:38 
Questionproblem gettin specific record.. Pin
rcwoods27-May-07 22:50
rcwoods27-May-07 22:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.