15,900,461 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Member 10861672 (Top 6 by date)
Member 10861672
15-Dec-14 11:44am
View
|-----D--------|---W----|---X---|------Z--------|------AA-------|----------AB-------------|-AC--|---------AD------------|
!______________!________!_______!_______________!_______________!_________________________!_____!_______________________!
|S.B.I. ATM----|Bhilai--|Durg---|Smriti Nagar---|Junwani Road---|Infront Of Jaika Bakery--|ATM--|State Bank Of India ATM|
|Axis Bank ATM-|Bhilai--|Durg---|Shop No 106----|Smriti Nagar---|CHPL Complex-------------|ATM--|Axis Bank ATM----------|
|S.B.I.ATM-----|Bhilai--|Durg---|Khursipar Gate-|G.E. Road------|Bansi Bazaar-------------|ATM--|State Bank Of India ATM|
|AXIS ATM------|Bhilai--|Durg---|Khursipar Gate-|G.E. Road------|Bansi Bazaar-------------|ATM--|Axis Bank ATM----------|
|B.O.I.ATM-----|Bhilai--|Durg---|Khursipar Gate-|G.E. Road------|Bansi Bazaar-------------|ATM--|Bank Of India ATM------|
|H.D.F.C.ATM---|Bhilai--|Durg---|Khursipar Gate-|G.E. Road------|Bansi Bazaar-------------|ATM--|H.D.F.C. ATM-----------|
The above table is ABC.
and the Query is
SELECT D,W,X,Z,AA,AB,AC,AD
FROM ABC WHERE (D LIKE 'S.B.I.%' OR
D LIKE 'ATM%' OR
D LIKE 'BHILAI%' OR
D LIKE 'G.E.%') AND (W LIKE 'S.B.I.%' OR
W LIKE 'ATM%' OR
W LIKE 'BHILAI%' OR
W LIKE 'G.E.%') AND (X LIKE 'S.B.I.%' OR
X LIKE 'ATM%' OR
X LIKE 'BHILAI%' OR
X LIKE 'G.E.%') AND (Z LIKE 'S.B.I.%' OR
Z LIKE 'ATM%' OR
Z LIKE 'BHILAI%' OR
Z LIKE 'G.E.%') AND (AC LIKE 'S.B.I.%' OR
AC LIKE 'ATM%' OR
AC LIKE 'BHILAI%' OR
AC LIKE 'G.E.%')
Member 10861672
15-Dec-14 7:47am
View
Deleted
|-----D--------|---W----|---X---|------Z--------|------AA-------|----------AB-------------|-AC--|---------AD------------|
!______________!________!_______!_______________!_______________!_________________________!_____!_______________________!
|S.B.I. ATM |Bhilai |Durg |Smriti Nagar |Junwani Road |Infront Of Jaika Bakery |ATM |State Bank Of India ATM|
|Axis Bank ATM |Bhilai |Durg |Shop No 106 |Smriti Nagar |CHPL Complex |ATM |Axis Bank ATM |
|S.B.I. ATM |Bhilai |Durg |Khursipar Gate |G.E. Road |Bansi Bazaar |ATM |State Bank Of India ATM|
|AXIS ATM |Bhilai |Durg |Khursipar Gate |G.E. Road |Bansi Bazaar |ATM |Axis Bank ATM |
|B.O.I.ATM |Bhilai |Durg |Khursipar Gate |G.E. Road |Bansi Bazaar |ATM |Bank Of India ATM |
|H.D.F.C.ATM |Bhilai |Durg |Khursipar Gate |G.E. Road |Bansi Bazaar |ATM |H.D.F.C. ATM |
The above table is ABC.
and the Query is
SELECT D,W,X,Z,AA,AB,AC,AD
FROM ABC WHERE (D LIKE 'S.B.I.%' OR
D LIKE 'ATM%' OR
D LIKE 'BHILAI%' OR
D LIKE 'G.E.%') AND (W LIKE 'S.B.I.%' OR
W LIKE 'ATM%' OR
W LIKE 'BHILAI%' OR
W LIKE 'G.E.%') AND (X LIKE 'S.B.I.%' OR
X LIKE 'ATM%' OR
X LIKE 'BHILAI%' OR
X LIKE 'G.E.%') AND (Z LIKE 'S.B.I.%' OR
Z LIKE 'ATM%' OR
Z LIKE 'BHILAI%' OR
Z LIKE 'G.E.%') AND (AC LIKE 'S.B.I.%' OR
AC LIKE 'ATM%' OR
AC LIKE 'BHILAI%' OR
AC LIKE 'G.E.%')
Member 10861672
15-Dec-14 6:47am
View
Deleted
D W X Z AA AB AC AD
Axis Bank ATM Bhilai Durg Shop No 106 Smriti Nagar CHPL Complex ATM Axis Bank ATM
S.B.I. ATM Bhilai Durg Khursipar Gate G.E. Road Bansi Bazaar ATM State Bank Of India ATM
AXIS ATM Bhilai Durg Khursipar Gate G.E. Road Bansi Bazaar ATM Axis Bank ATM
B.O.I. ATM Bhilai Durg Khursipar Gate G.E. Road Bansi Bazaar ATM Bank Of India ATM
H.D.F.C. ATM Bhilai Durg Khursipar Gate G.E. Road Bansi Bazaar ATM H.D.F.C. ATM
The above table is ABC.
and the Query is
SELECT D,W,X,Z,AA,AB,AC,AD
FROM ABC WHERE (D LIKE 'S.B.I.%' OR
D LIKE 'ATM%' OR
D LIKE 'BHILAI%' OR
D LIKE 'G.E.%') AND (W LIKE 'S.B.I.%' OR
W LIKE 'ATM%' OR
W LIKE 'BHILAI%' OR
W LIKE 'G.E.%') AND (X LIKE 'S.B.I.%' OR
X LIKE 'ATM%' OR
X LIKE 'BHILAI%' OR
X LIKE 'G.E.%') AND (Z LIKE 'S.B.I.%' OR
Z LIKE 'ATM%' OR
Z LIKE 'BHILAI%' OR
Z LIKE 'G.E.%') AND (AC LIKE 'S.B.I.%' OR
AC LIKE 'ATM%' OR
AC LIKE 'BHILAI%' OR
AC LIKE 'G.E.%')
Member 10861672
15-Dec-14 6:31am
View
Is there are no any query in SQL for that condition.
Member 10861672
15-Dec-14 4:51am
View
Deleted
| D | W | X | Z | AA | AB |AC | AD |
!______________!________!_______!_______________!_______________!_________________________!_____!_______________________!
|S.B.I. ATM |Bhilai |Durg |Smriti Nagar |Junwani Road |Infront Of Jaika Bakery |ATM |State Bank Of India ATM|
|Axis Bank ATM |Bhilai |Durg |Shop No 106 |Smriti Nagar |CHPL Complex |ATM |Axis Bank ATM |
|S.B.I. ATM |Bhilai |Durg |Khursipar Gate |G.E. Road |Bansi Bazaar |ATM |State Bank Of India ATM|
|AXIS ATM |Bhilai |Durg |Khursipar Gate |G.E. Road |Bansi Bazaar |ATM |Axis Bank ATM |
|B.O.I. ATM |Bhilai |Durg |Khursipar Gate |G.E. Road |Bansi Bazaar |ATM |Bank Of India ATM |
|H.D.F.C. ATM |Bhilai |Durg |Khursipar Gate |G.E. Road |Bansi Bazaar |ATM |H.D.F.C. ATM |
The above table is ABC.
and the Query is
SELECT D,W,X,Z,AA,AB,AC,AD
FROM ABC WHERE (D LIKE 'S.B.I.%' OR
D LIKE 'ATM%' OR
D LIKE 'BHILAI%' OR
D LIKE 'G.E.%') AND (W LIKE 'S.B.I.%' OR
W LIKE 'ATM%' OR
W LIKE 'BHILAI%' OR
W LIKE 'G.E.%') AND (X LIKE 'S.B.I.%' OR
X LIKE 'ATM%' OR
X LIKE 'BHILAI%' OR
X LIKE 'G.E.%') AND (Z LIKE 'S.B.I.%' OR
Z LIKE 'ATM%' OR
Z LIKE 'BHILAI%' OR
Z LIKE 'G.E.%') AND (AC LIKE 'S.B.I.%' OR
AC LIKE 'ATM%' OR
AC LIKE 'BHILAI%' OR
AC LIKE 'G.E.%')
Member 10861672
15-Dec-14 3:20am
View
sir! can u plz tell me the modified query of above...cz i don't know about left outer join and fK.
Show More