🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.pascal.delphi.databases
Article #159

Re: (Q): SQL-Queries

#159
From: Jouko Tolonen
Date: Mon, 20 Oct 1997 00:00
38 lines
2225 bytes
On Mon, 20 Oct 1997 11:04:45 +0200, "Heinz A. Krebs Dipl.-Ing."
<hkrebs@fbch.tuwien.ac.at> wrote:

>servas!
>
>i have three small questions about sql-queries:
>
>1. how can i make a case-insensitive selection? if i make the following:
>     SELECT titel FROM database WHERE titel LIKE '%apple%' 
>   i don't get the entries with 'Apple', but i want them all!
Try LIKE '_pple' ore use Object PAL to convert everything to upper
case
>
>2. can i retrieve a record by his recordnumber like
>     SELECT titel, rezept FROM database WHERE recordnumber=4162
Record number should not have a meaning in a database, so I don't
recommend this. What happens if there is more than one user. One is
deleting and the other is selecting and third user is adding records.
Try to keep the record number.
>
>3. where can i get a good explanation of SQL-statements on the web to
>   avoid further boring questions by me?  ;-)
Same problem. 
Solution 1: borrow or buy some books. 
Solution 2: Use Database Desktop to generate the code. It is easy to
make query using Desktop. After completion see SQL statement by
pressing that nice SQL button;-). Works quite often. 
Solution 3: Download: Delphi VCL Extensions (RX) Library from Delphi
Superpage It contains a large number of components,
objects and routines for Borland Delphi with full source code. One of
the components accepts Paradox type QBE. It works on Paradox and Dbase
tables. Only trouble is that the help files are in Russian. 


Jouko Tolonen
South Africa
jouko@megaweb.co.za
Technical Details
Message-ID: <344b8f0e.3239379@news.megaweb.co.za>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <344B1EAD.E25@fbch.tuwien.ac.at>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: ffff5,c6b02df51994e2b0
X-Google-Attributes: gidffff5,public
X-Google-Thread: 10de66,c6b02df51994e2b0
X-Google-Attributes: gid10de66,public
X-Google-Thread: 11301e,c6b02df51994e2b0
X-Google-Attributes: gid11301e,public
From: jouko@megaweb.co.za (Jouko Tolonen)
Subject: Re: (Q): SQL-Queries
Date: 1997/10/20
Message-ID: <344b8f0e.3239379@news.megaweb.co.za>
X-Deja-AN: 282382418
References: <344B1EAD.E25@fbch.tuwien.ac.at>
Organization: An Internet Solution Customer
Newsgroups: comp.lang.pascal.delphi.databases,borland.public.delphi.database.sqlservers,microsoft.public.sqlserver.programming