Click here to Skip to main content
15,891,529 members
Home / Discussions / Database
   

Database

 
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 
AnswerRe: sql restrict Pin
Ashfield15-Oct-08 23:56
Ashfield15-Oct-08 23:56 
GeneralRe: sql restrict Pin
bhavna432116-Oct-08 0:47
bhavna432116-Oct-08 0:47 
GeneralRe: sql restrict Pin
Ashfield16-Oct-08 1:17
Ashfield16-Oct-08 1:17 
GeneralRe: sql restrict Pin
Mycroft Holmes16-Oct-08 17:28
professionalMycroft Holmes16-Oct-08 17:28 
GeneralRe: sql restrict Pin
Ashfield16-Oct-08 21:24
Ashfield16-Oct-08 21:24 
QuestionGet data form Table A that is not in Table B to a new Table C automatically Pin
Thayhor15-Oct-08 18:56
Thayhor15-Oct-08 18:56 
AnswerRe: Get data form Table A that is not in Table B to a new Table C automatically Pin
Paddy Boyd15-Oct-08 23:32
Paddy Boyd15-Oct-08 23:32 
GeneralRe: Get data form Table A that is not in Table B to a new Table C automatically Pin
Thayhor16-Oct-08 9:00
Thayhor16-Oct-08 9:00 
AnswerRe: Get data form Table A that is not in Table B to a new Table C automatically Pin
Wendelius16-Oct-08 10:55
mentorWendelius16-Oct-08 10:55 
GeneralRe: Get data form Table A that is not in Table B to a new Table C automatically Pin
Thayhor17-Oct-08 1:34
Thayhor17-Oct-08 1:34 
GeneralRe: Get data form Table A that is not in Table B to a new Table C automatically Pin
Wendelius17-Oct-08 7:39
mentorWendelius17-Oct-08 7:39 
AnswerRe: Get data form Table A that is not in Table B to a new Table C automatically Pin
Mark Churchill17-Oct-08 4:18
Mark Churchill17-Oct-08 4:18 
QuestionSQL Functions Pin
Illegal Operation15-Oct-08 14:45
Illegal Operation15-Oct-08 14:45 
AnswerRe: SQL Functions Pin
Mycroft Holmes15-Oct-08 16:41
professionalMycroft Holmes15-Oct-08 16:41 

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.