PROFESSIONAL NEWSGROUPS
WINDEV
,
WEBDEV
and
WINDEV Mobile
Home
|
Recent messages
|
Connect
|
Sign out
|
English
Home
→
Reports & Queries
→
Fonction équivalent à la fonction IIF du SQL d'ACCESS
Fonction équivalent à la fonction IIF du SQL d'ACCESS
Started by PierrotPolo, Jan., 23 2020 5:02 PM - 4 replies
Connect yourself…
PierrotPolo
#1
Registered member
3 messages
Posted on January, 23 2020 - 5:02 PM
Bonjour
J'ai une table Contacts avec un champ Nom et un champ Société
Je voudrais faire une requête qui me permette de créer une colonne test qui afficherait :
le champ société quand le champ nom est vide et sinon le Champ Nom
Dans ACCESS ça donne
SELECT IIf(IsNull([Nom]),[Société],[Nom]) AS test, Contacts.Nom, Contacts.Société
FROM Contacts;
Comment peut-on convertir cette syntaxe avec le SQL de windev
Merci pour votre aide
Pierre
Report
0
0
THIERRY TILLIER
#2
Registered member
1,144 messages
Popularité : +50 (142 votes)
Posted on May, 05 2021 - 2:55 PM
Avec la fonction DECODE ....
Oui je sais, le temps a passé sous les ponts depuis le POST. J'espère que vous aviez trouvé.
--
Thierry TILLIER
Développeur Windev-Webdev
Formation Windev :
https://coursdinfo.teachable.com/
Formation bureautique :
https://coursdinfo.net
Tuto WINDEV sur ma chaîne Youtube
Report
0
0
Snics
#3
Posted on May, 06 2021 - 7:16 AM
Thanks to this article I can learn more. Expand my knowledge and abilities. Actually the article is very real.
Report
0
0
Snics
#4
Posted on May, 06 2021 - 7:17 AM
Thanks to this article I can learn more. Expand my knowledge and abilities. Actually the article is very real.
Report
0
0
Obryan154
#5
Posted on June, 02 2021 - 8:43 AM
PierrotPolo escribío:
Bonjour
J'ai une table Contacts avec un champ Nom et un champ Société
Je voudrais faire une requête qui me permette de créer une colonne test qui afficherait :
le champ société quand le champ nom est vide et sinon le Champ Nom
Dans ACCESS ça donne
SELECT IIf(IsNull([Nom]),[Société],[Nom]) AS test, Contacts.Nom, Contacts.Société
FROM Contacts;
Comment peut-on convertir cette syntaxe avec le SQL de windev
Merci pour votre aide
Pierre
Everything is very open with a clear description of the issues. It was truly informative. Your website is very helpful. Many thanks for sharing!
Report
0
0
→ Go back to Reports & Queries
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (earlier versions)
WEBDEV (earlier versions)
WINDEV Mobile (earlier versions)
Reports & Queries
Off-topic
Tools
Français
English
Español
Portuguesa
Close this window
Search type
Only topics
All the messages
Search period
Any time
Past hour
Past 24 hours
Past week
Past month
Past year
Cancel
Preview of your message
Adding an image
Import an image from a URL
Send an image from a file of your disk
Drop a file or click "Browse..."
or
Cancel
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Text