Click here to Skip to main content
15,900,724 members
Home / Discussions / Database
   

Database

 
AnswerRe: Is this possible?? Pin
Mycroft Holmes16-Oct-08 21:39
professionalMycroft Holmes16-Oct-08 21:39 
QuestionDistinct Records Pin
jonhbt16-Oct-08 20:43
jonhbt16-Oct-08 20:43 
AnswerRe: Distinct Records Pin
Eslam Afifi16-Oct-08 21:46
Eslam Afifi16-Oct-08 21:46 
QuestionStore Image in Database Pin
astrovirgin16-Oct-08 20:11
astrovirgin16-Oct-08 20:11 
AnswerDouble Post - Please ignore Pin
Giorgi Dalakishvili16-Oct-08 20:32
mentorGiorgi Dalakishvili16-Oct-08 20:32 
Questionabout identity_insert reset problem Pin
alexyxj16-Oct-08 7:54
alexyxj16-Oct-08 7:54 
AnswerNever re-use identity Pin
David Mujica16-Oct-08 8:34
David Mujica16-Oct-08 8:34 
AnswerRe: about identity_insert reset problem Pin
Wendelius16-Oct-08 8:38
mentorWendelius16-Oct-08 8:38 
AnswerRe: about identity_insert reset problem Pin
Mycroft Holmes16-Oct-08 17:18
professionalMycroft Holmes16-Oct-08 17:18 
Questioninsert 'SYSDATE' into a table in SQL Server Pin
alexyxj16-Oct-08 7:50
alexyxj16-Oct-08 7:50 
AnswerRe: insert 'SYSDATE' into a table in SQL Server Pin
Wendelius16-Oct-08 8:33
mentorWendelius16-Oct-08 8:33 
QuestionImporting data items from text files in a table. Pin
amit201116-Oct-08 5:42
amit201116-Oct-08 5:42 
AnswerRe: Importing data items from text files in a table. Pin
Blue_Boy16-Oct-08 6:49
Blue_Boy16-Oct-08 6:49 
AnswerCP IGNORE USER Pin
leckey16-Oct-08 16:08
leckey16-Oct-08 16:08 
QuestionData in Alphabetical order Pin
amit201116-Oct-08 5:10
amit201116-Oct-08 5:10 
AnswerRe: Data in Alphabetical order Pin
Ashfield16-Oct-08 5:25
Ashfield16-Oct-08 5:25 
AnswerRe: Data in Alphabetical order Pin
Vimalsoft(Pty) Ltd16-Oct-08 7:44
professionalVimalsoft(Pty) Ltd16-Oct-08 7:44 
AnswerCP IGNORE USER Pin
leckey16-Oct-08 9:47
leckey16-Oct-08 9:47 
Questionmultiple reports in a single report-help [modified] Pin
i_m_hashmat15-Oct-08 22:07
i_m_hashmat15-Oct-08 22:07 
AnswerRe: multiple reports in a single report-help Pin
Paddy Boyd15-Oct-08 23:24
Paddy Boyd15-Oct-08 23:24 
GeneralRe: multiple reports in a single report-help Pin
i_m_hashmat16-Oct-08 1:03
i_m_hashmat16-Oct-08 1:03 
QuestionError in my SQL query (SQL SERVER 2000) Pin
Karan_TN15-Oct-08 21:31
Karan_TN15-Oct-08 21:31 
SELECT Table1.AutoID,'RA No' = CASE WHEN Table1.RANo <= 9 THEN Table2.Assessment_Name + '/' + cast(Table1.Year_Year as varchar) + '/00' + cast(Table1.RANo as varchar) WHEN Table1.RANo >= 10 and Table1.RANo<=99 THEN Table2.Assessment_Name + '/'  + cast(Table1.Year_Year as varchar) + '/0' + cast(Table1.RANo as varchar) WHEN Table1.RANo >= 100 THEN Table2.Assessment_Name + '/'  + cast(Table1.Year_Year as varchar) + '/' + cast( + Table1.RANo as varchar) END,

'BU (consolidated Lev 1 - 4)' = 
if len(Table1.BULevel1) <> 0 BEGIN SELECT Table1.BULevel1 + '/' from Table1 where len(Table1.BULevel1) <>0 END
if len(Table1.BULevel2) <> 0 BEGIN SELECT Table1.BULevel2 + '/' from Table1 where len(Table1.BULevel2) <>0 END
if len(Table1.BULevel3) <> 0 BEGIN SELECT Table1.BULevel3 + '/' from Table1 where len(Table1.BULevel3) <>0 END
if len(Table1.BULevel4) <> 0 BEGIN SELECT Table1.BULevel4 + '/' from Table1 where len(Table1.BULevel4) <>0 END

,Table1.RATitle AS [RA Name],Table1.RADesc AS [RA Desc],Table1.SME AS [SME],Tab_RiskRate.RiskRate_Name AS [Risk Rating (Pre Miti)],Tab_Location.Location_Name AS Location,Table1.PlannedMonth AS [Planned month],Table1.RescheduleMonth AS [Rescheduled Month],Table1.DateStarted AS [Date started],Table1.RAInitiated AS [No. of days since RA initiated],Table1.Signoff AS [Date Signed Off],Table1.ActualDate AS [Project Live Date],Tab_Status.Status_Name AS Status FROM Table1 INNER JOIN Table2 ON Table1.Assessment = Table2.AutoID INNER JOIN Tab_RiskRate ON Table1.PreMitigating = Tab_RiskRate.AutoID INNER JOIN Tab_Location ON Table1.Location = Tab_Location.AutoID INNER JOIN Tab_Status ON Table1.Status = Tab_Status.AutoID WHERE (Table1.Mode = 1)


i m getting Incorrect syntax near the keyword 'if'. and Line 8: Incorrect syntax near ','. error.
please guide me - KARAN
AnswerRe: Error in my SQL query (SQL SERVER 2000) Pin
Paddy Boyd15-Oct-08 23:31
Paddy Boyd15-Oct-08 23:31 
Questionsql restrict Pin
bhavna432115-Oct-08 21:21
bhavna432115-Oct-08 21:21 
AnswerRe: sql restrict Pin
Paddy Boyd15-Oct-08 23:33
Paddy Boyd15-Oct-08 23:33 

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.