Solved

How to make SQL querryes. Need example!

Posted on 1998-04-08
6
159 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
  • 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
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

747 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now