Solved

How to make SQL querryes. Need example!

Posted on 1998-04-08
6
165 Views
Last Modified: 2010-05-18
Hello!
For example I have Paradox databases main.db and words.db...
main.db fields: 1) Id; 2)name; 3)surname
words.db fields: 1)Id; 2)word
All fields are 'string'.
Please, give me example, how I can make FIND procedure in
SQL for those tables. I need to get working application. And also I need to get short description about SQL sintaxis.
Thanx...

0
Comment
Question by:hind
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
6 Comments
 
LVL 1

Accepted Solution

by:
mrider earned 100 total points
ID: 1361331
select * from "main.db" where
name like "%some%"
// for substring search
//or
select * from "main.db" where
name  "some"
//for string search
good book on SQL is Martin Gruber "Understanding SQL"


0
 

Author Comment

by:hind
ID: 1361332
Very nice... But tell me plsss, where I can read results of search? (about DBGrid with datasource:=query I know)... But may be there are more things?
0
 
LVL 1

Expert Comment

by:mrider
ID: 1361333
look at page Database Controls in your Delphi. Almost all of this components can show results

0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 1

Expert Comment

by:mrider
ID: 1361334
look at page Database Controls in your Delphi. Almost all of this components can show results

0
 

Author Comment

by:hind
ID: 1361335
And the last question... :]
I have Paradox databases main.db and words.db...
    main.db fields: 1) Id; 2)name; 3)surname
    words.db fields: 1)Id; 2)word
    All fields are 'string'.
I want to make select from main.db and words.db for all equal
id from main.db and words.db, and for name='dima'...
It's the last question :)
0
 
LVL 1

Expert Comment

by:mrider
ID: 1361336
first - you have _tables_, not database. database is data and relations.
try use
select a.*,b.* from "main.db" a, "words.db" b
where
 b.id=a.id
 and a.name="dima"

0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

695 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question