Click here to Skip to main content
15,917,473 members
Home / Discussions / Database
   

Database

 
Questionhow this query can be written in sql server Pin
lakshmichawala31-Mar-09 19:00
lakshmichawala31-Mar-09 19:00 
AnswerRe: how this query can be written in sql server Pin
Blue_Boy31-Mar-09 21:02
Blue_Boy31-Mar-09 21:02 
GeneralRe: how this query can be written in sql server Pin
lakshmichawala31-Mar-09 21:05
lakshmichawala31-Mar-09 21:05 
GeneralRe: how this query can be written in sql server Pin
Blue_Boy31-Mar-09 21:16
Blue_Boy31-Mar-09 21:16 
GeneralRe: how this query can be written in sql server Pin
lakshmichawala31-Mar-09 21:25
lakshmichawala31-Mar-09 21:25 
GeneralRe: how this query can be written in sql server Pin
Eddy Vluggen1-Apr-09 0:39
professionalEddy Vluggen1-Apr-09 0:39 
QuestionLooking for good tool to convert Oracle - sql server Pin
E_Gold31-Mar-09 18:18
E_Gold31-Mar-09 18:18 
QuestionSequences?? Pin
Muammar©31-Mar-09 6:31
Muammar©31-Mar-09 6:31 
Hey everyone,
How would you create a simple sequence that starts with the maximum value of a table column

CREATE SEQUENCE SEQ_TEST
    MINVALUE 1
    START WITH (SELECT MAX(ID) FROM TEST)
    INCREMENT BY 1
    CACHE 20
    ORDER
/

    START WITH (SELECT MAX(ID) FROM TEST)
               *
ERROR at line 3:
ORA-01722: invalid number


May be by creating a temporary variable to store that value and use it after the START WITH.. If so, please show me how or kindly suggest another way round

Many thanks guys!


All generalizations are wrong, including this one!
(\ /)
(O.o)
(><)

AnswerRe: Sequences?? Pin
Blue_Boy31-Mar-09 7:16
Blue_Boy31-Mar-09 7:16 
GeneralRe: Sequences?? Pin
Muammar©31-Mar-09 18:47
Muammar©31-Mar-09 18:47 
GeneralRe: Sequences?? Pin
Blue_Boy31-Mar-09 21:04
Blue_Boy31-Mar-09 21:04 
AnswerRe: Sequences?? Pin
Jörgen Andersson31-Mar-09 8:45
professionalJörgen Andersson31-Mar-09 8:45 
GeneralRe: Sequences?? Pin
Muammar©31-Mar-09 18:42
Muammar©31-Mar-09 18:42 
GeneralRe: Sequences?? Pin
Jörgen Andersson31-Mar-09 21:00
professionalJörgen Andersson31-Mar-09 21:00 
QuestionDeploy report project Pin
mehrdadc4831-Mar-09 4:00
mehrdadc4831-Mar-09 4:00 
QuestionCreating local database on sql server Pin
gottimukkala31-Mar-09 2:53
gottimukkala31-Mar-09 2:53 
AnswerRe: Creating local database on sql server Pin
agent00zelda31-Mar-09 3:43
agent00zelda31-Mar-09 3:43 
AnswerRe: Creating local database on sql server Pin
Henry Minute1-Apr-09 1:26
Henry Minute1-Apr-09 1:26 
QuestionAccessing Multiple databases at runtime with ODBC Pin
param_joshi31-Mar-09 1:19
param_joshi31-Mar-09 1:19 
Questionplease How can I resolve this error........ Pin
Motajo Tolu31-Mar-09 1:15
professionalMotajo Tolu31-Mar-09 1:15 
AnswerRe: please How can I resolve this error........ Pin
Colin Angus Mackay31-Mar-09 1:39
Colin Angus Mackay31-Mar-09 1:39 
AnswerRe: please How can I resolve this error........ Pin
Blue_Boy31-Mar-09 2:01
Blue_Boy31-Mar-09 2:01 
Questionduplicating table data while handeling primary key column Pin
Muammar©30-Mar-09 22:02
Muammar©30-Mar-09 22:02 
AnswerRe: duplicating table data while handeling primary key column Pin
Blue_Boy30-Mar-09 22:13
Blue_Boy30-Mar-09 22:13 
GeneralRe: duplicating table data while handeling primary key column Pin
Muammar©30-Mar-09 22:44
Muammar©30-Mar-09 22:44 

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.