Click here to Skip to main content
15,887,746 members
Home / Discussions / Database
   

Database

 
QuestionData driven schedule with Reporting Services Pin
deemikey22-Oct-07 14:10
deemikey22-Oct-07 14:10 
QuestionSQL Query Pin
Giri K22-Oct-07 13:07
Giri K22-Oct-07 13:07 
AnswerRe: SQL Query Pin
Marek Grzenkowicz23-Oct-07 0:00
Marek Grzenkowicz23-Oct-07 0:00 
AnswerRe: SQL Query Pin
Giri K23-Oct-07 14:31
Giri K23-Oct-07 14:31 
Questionselect query doubt Pin
Vipin.d22-Oct-07 3:51
Vipin.d22-Oct-07 3:51 
AnswerRe: select query doubt Pin
Vipin.d22-Oct-07 3:58
Vipin.d22-Oct-07 3:58 
AnswerRe: select query doubt [modified] Pin
GuyThiebaut22-Oct-07 4:44
professionalGuyThiebaut22-Oct-07 4:44 
QuestionHelp in designing search query Pin
NetBot22-Oct-07 3:03
NetBot22-Oct-07 3:03 
Hi all,

Table schema

empid primary key
emp_name
emp_age
emp_skills
emp_Isactive


I am storing multiple skills of a customer in same column separated with commas.I have designed a search form where in the employer enters skills in search box separated using commas. I want to match these skills irrespective of commas.

for this purpose i used a stored proc and passed skills as parameters

select skill from tbljob where skill like '%'+ISNULL(@skill1,skill)+'%' or skill like '%'+ISNULL(@skill2,skill)+'%' or skill like '%'+ISNULL(@skill3,skill)+'%'

but if one of the skill 1,2,3 is null ie if user enters only 1 or 2 , it returns all rows because the other condition is always true .

How can i use "OR" with other statements so that it works out


AnswerRe: Help in designing search query Pin
Michael Potter22-Oct-07 5:05
Michael Potter22-Oct-07 5:05 
QuestionDisplay SQL query results in Windows Form Pin
hobbsieoz22-Oct-07 2:36
hobbsieoz22-Oct-07 2:36 
AnswerRe: Display SQL query results in Windows Form Pin
Paddy Boyd22-Oct-07 5:01
Paddy Boyd22-Oct-07 5:01 
QuestionConvert comma separated text file (.csv) file into access .mdb file Pin
shyamts22-Oct-07 1:41
shyamts22-Oct-07 1:41 
AnswerRe: Convert comma separated text file (.csv) file into access .mdb file Pin
_Damian S_22-Oct-07 17:21
professional_Damian S_22-Oct-07 17:21 
Question[Solved]Insert statement against a FoxPro database isn't commited using ODBCConnection in C# Pin
Larantz21-Oct-07 22:49
Larantz21-Oct-07 22:49 
QuestionRead binary data from SQL Server Pin
Eusebiu Marcu21-Oct-07 22:11
Eusebiu Marcu21-Oct-07 22:11 
AnswerRe: Read binary data from SQL Server Pin
Eusebiu Marcu21-Oct-07 23:44
Eusebiu Marcu21-Oct-07 23:44 
QuestionSqlQueries Pin
SreejithAchutan21-Oct-07 22:06
SreejithAchutan21-Oct-07 22:06 
AnswerRe: SqlQueries Pin
Colin Angus Mackay21-Oct-07 23:04
Colin Angus Mackay21-Oct-07 23:04 
AnswerRe: SqlQueries Pin
John-ph22-Oct-07 0:48
John-ph22-Oct-07 0:48 
AnswerRe: SqlQueries Pin
Abhijit Jana22-Oct-07 6:38
professionalAbhijit Jana22-Oct-07 6:38 
AnswerRe: SqlQueries Pin
PavanPareta25-Oct-07 3:56
PavanPareta25-Oct-07 3:56 
QuestionHelp!! error message "Data provider or other service returned an E_FAIL status" Pin
anthoy21-Oct-07 21:56
anthoy21-Oct-07 21:56 
AnswerRe: Help!! error message "Data provider or other service returned an E_FAIL status" Pin
Chetan Patel21-Oct-07 23:22
Chetan Patel21-Oct-07 23:22 
GeneralRe: Help!! error message "Data provider or other service returned an E_FAIL status" Pin
anthoy21-Oct-07 23:33
anthoy21-Oct-07 23:33 
QuestionTransaction , rollback ..??? Pin
devboycpp21-Oct-07 21:56
devboycpp21-Oct-07 21:56 

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.