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

Database

 
Questionis a View faster than a simple Query Pin
εїзεїзεїз3-May-09 20:22
εїзεїзεїз3-May-09 20:22 
AnswerRe: is a View faster than a simple Query Pin
saanj3-May-09 23:07
saanj3-May-09 23:07 
GeneralRe: is a View faster than a simple Query Pin
εїзεїзεїз4-May-09 19:38
εїзεїзεїз4-May-09 19:38 
GeneralRe: is a View faster than a simple Query Pin
saanj4-May-09 20:04
saanj4-May-09 20:04 
AnswerRe: is a View faster than a simple Query Pin
PIEBALDconsult4-May-09 5:57
mvePIEBALDconsult4-May-09 5:57 
GeneralRe: is a View faster than a simple Query Pin
εїзεїзεїз4-May-09 19:34
εїзεїзεїз4-May-09 19:34 
QuestionFetching record that have a particular value in a comma separated value in column [modified] Pin
Sumit Prakash Sharma2-May-09 2:33
professionalSumit Prakash Sharma2-May-09 2:33 
AnswerRe: Fetching record that have a particular value in a comma separated value in column Pin
Mycroft Holmes2-May-09 2:56
professionalMycroft Holmes2-May-09 2:56 
This is where you pay the price for BAD data design, If you were good you would create another table called Subject and link it to your student table in the correct foreign key data structure. Now you're screwed, you have to invent a work around for your crappy design.

Options Are:
Redesign you data structure correctly - this is the recommended solution.
Play around with the text structure (', Science') will get most except where it is the first subject.
Try and NOT like "Social Science"
Create a split function based on the "," and filter on the required value (most sql devs have a split function floating around in their tools set)

Never underestimate the power of human stupidity
RAH

GeneralRe: Fetching record that have a particular value in a comma separated value in column Pin
εїзεїзεїз3-May-09 21:07
εїзεїзεїз3-May-09 21:07 
GeneralRe: Fetching record that have a particular value in a comma separated value in column Pin
Mycroft Holmes3-May-09 22:48
professionalMycroft Holmes3-May-09 22:48 
GeneralRe: Fetching record that have a particular value in a comma separated value in column Pin
εїзεїзεїз3-May-09 23:10
εїзεїзεїз3-May-09 23:10 
QuestionSQL Pin
newbie123456789101-May-09 9:04
newbie123456789101-May-09 9:04 
AnswerRe: SQL Pin
David Mujica1-May-09 9:45
David Mujica1-May-09 9:45 
GeneralRe: SQL Pin
newbie123456789101-May-09 9:59
newbie123456789101-May-09 9:59 
Questiongenerate & compare id from table in sql storeprocedure Pin
premprakashbhati30-Apr-09 22:26
premprakashbhati30-Apr-09 22:26 
Questionstored procedure is fast, but slow from code Pin
Meysam Mahfouzi30-Apr-09 20:47
Meysam Mahfouzi30-Apr-09 20:47 
AnswerRe: stored procedure is fast, but slow from code Pin
Henry Minute1-May-09 0:04
Henry Minute1-May-09 0:04 
AnswerUse Estimated execution plan Pin
David Mujica1-May-09 3:24
David Mujica1-May-09 3:24 
GeneralRe: Use Estimated execution plan Pin
Meysam Mahfouzi1-May-09 5:53
Meysam Mahfouzi1-May-09 5:53 
GeneralRe: Use Estimated execution plan Pin
David Mujica1-May-09 7:55
David Mujica1-May-09 7:55 
AnswerRe: stored procedure is fast, but slow from code Pin
Mycroft Holmes1-May-09 14:52
professionalMycroft Holmes1-May-09 14:52 
QuestionMySQL: how to call a stored proc with OUT param Pin
devvvy30-Apr-09 20:15
devvvy30-Apr-09 20:15 
QuestionMicrosoft SQL 2008 Pin
Ivan200930-Apr-09 10:20
Ivan200930-Apr-09 10:20 
AnswerRe: Microsoft SQL 2008 Pin
Henry Minute30-Apr-09 11:43
Henry Minute30-Apr-09 11:43 
GeneralRe: Microsoft SQL 2008 Pin
Ivan200930-Apr-09 14:12
Ivan200930-Apr-09 14:12 

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.