Solved

How to make SQL querryes. Need example!

Posted on 1998-04-08
6
164 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
Industry Leaders: 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

749 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