Click here to Skip to main content
15,909,742 members
Home / Discussions / Database
   

Database

 
QuestionVisual Studio and SQL 2005 Pin
Aptiva Dave25-Aug-08 10:09
Aptiva Dave25-Aug-08 10:09 
AnswerRe: Visual Studio and SQL 2005 Pin
DerekFL25-Aug-08 10:13
DerekFL25-Aug-08 10:13 
AnswerRe: Visual Studio and SQL 2005 Pin
Paul Conrad25-Aug-08 10:33
professionalPaul Conrad25-Aug-08 10:33 
QuestionManipulate SQL String Pin
tantja25-Aug-08 9:51
tantja25-Aug-08 9:51 
AnswerRe: Manipulate SQL String Pin
DerekFL25-Aug-08 10:09
DerekFL25-Aug-08 10:09 
GeneralRe: Manipulate SQL String Pin
tantja25-Aug-08 13:02
tantja25-Aug-08 13:02 
AnswerRe: Manipulate SQL String Pin
Blue_Boy25-Aug-08 11:09
Blue_Boy25-Aug-08 11:09 
QuestionRe: Manipulate SQL String Pin
tantja26-Aug-08 10:59
tantja26-Aug-08 10:59 
I have another small question regarding this:

select substring(inventoryId,1,Charindex('-CE',InventoryID)) from Inventory
work if all the inventoryID contain -CE, however there're some inventoryID that doesn't contain -CE and for those that doesn't contain -CE i want to select the whole field.

My SQL statement is really big, if i use If..Else statement then it's like

if InventoryID like '-CE' begin
.....the whole nine yard of select statement...
else
.....another nine yard of select statement....

i was wonder if you can use if within select statement...what i picture are:
SELECT *, (inventoryid without -CE for those that contain -CE)
FROM Inventory

I hope you understand my question.
Thanks!
AnswerRe: Manipulate SQL String [modified] Pin
Blue_Boy26-Aug-08 19:54
Blue_Boy26-Aug-08 19:54 
GeneralRe: Manipulate SQL String Pin
tantja27-Aug-08 3:39
tantja27-Aug-08 3:39 
GeneralRe: Manipulate SQL String Pin
Blue_Boy27-Aug-08 3:42
Blue_Boy27-Aug-08 3:42 
Question@query_result_header = '1', not working? my email output doesnt include cloumn headers.....why? Pin
Hulicat25-Aug-08 5:30
Hulicat25-Aug-08 5:30 
Questionwhat does this mean "Integrirty constraint vialoation" while trying to write data into oracle tables ? Pin
Sakthiu25-Aug-08 5:23
Sakthiu25-Aug-08 5:23 
AnswerRe: what does this mean "Integrirty constraint vialoation" while trying to write data into oracle tables ? Pin
Tim Carmichael25-Aug-08 5:26
Tim Carmichael25-Aug-08 5:26 
AnswerError code ? Pin
David Mujica25-Aug-08 5:41
David Mujica25-Aug-08 5:41 
AnswerRe: what does this mean "Integrirty constraint vialoation" while trying to write data into oracle tables ? Pin
shubhi27-Aug-08 22:53
shubhi27-Aug-08 22:53 
QuestionSQL Server Connectivity Pin
Zafar Sultan25-Aug-08 3:49
Zafar Sultan25-Aug-08 3:49 
AnswerRe: SQL Server Connectivity Pin
Colin Angus Mackay25-Aug-08 4:24
Colin Angus Mackay25-Aug-08 4:24 
AnswerRe: SQL Server Connectivity Pin
Colin Angus Mackay25-Aug-08 21:12
Colin Angus Mackay25-Aug-08 21:12 
GeneralRe: SQL Server Connectivity Pin
Zafar Sultan26-Aug-08 0:03
Zafar Sultan26-Aug-08 0:03 
Questionsql Server client Users Increase Pin
rrrriiizz25-Aug-08 2:42
rrrriiizz25-Aug-08 2:42 
AnswerRe: sql Server client Users Increase Pin
Colin Angus Mackay25-Aug-08 2:49
Colin Angus Mackay25-Aug-08 2:49 
GeneralRe: sql Server client Users Increase Pin
rrrriiizz25-Aug-08 17:05
rrrriiizz25-Aug-08 17:05 
GeneralRe: sql Server client Users Increase Pin
Colin Angus Mackay25-Aug-08 21:09
Colin Angus Mackay25-Aug-08 21:09 
QuestionHow to get a list of Recently Viewed Reports in SSRS Pin
archie@hyd25-Aug-08 2:10
archie@hyd25-Aug-08 2:10 

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.