473,770 Members | 1,973 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Easy join with equal, star-equal, equal star (like MSSQL)

Hi folks,

I'm new with MySQL and I'm really impressed by this database engine.
While waiting for Stored Procedures :) (ver 5: anyone can say when
will be, approximately, released?), due to the fact that I'm coming
from MSSQL world, can anyone tell me if there's a way to perform join
without the classic SQL statement (inner join on, right join on, etc)
but using the WHERE clause, with equal =(inner join), star-equal *=
(left join) and equal-star =* (right join)?

Example follows:

SELECT
A.FIELD_1, B.FIELD_2, C.FIELD_3
FROM
TABLE_1 A, TABLE_2 B, TABLE_3 C
/* Here i go with joins using equals */
WHERE
A.KEYFIELD = B.A_KEYFIELD
AND A.KEYFIELD = C.A_KEYFIELD

I found this way on MSSQL very powerful and I'd like to produce the
same clean-code here with MySQL..

TIA, tK
Jul 20 '05 #1
0 5031

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
2745
by: Tino Lange | last post by:
Hi! I identified a bottleneck in my programs. I just want to "encrypt" data by easy xoring. Ok - that's no encryption at all - I know. But it's hardly readable - and that's enough :-) Just some quick obscurity. It turns out not to be quick at all. I really didn't expect this to be a bottleneck, but it takes quite some time.
33
9176
by: Jim Hill | last post by:
I've done some Googling around on this and it seems like creating a here document is a bit tricky with Python. Trivial via triple-quoted strings if there's no need for variable interpolation but requiring a long, long formatted arglist via (%s,%s,%s,ad infinitum) if there is. So my question is: Is there a way to produce a very long multiline string of output with variables' values inserted without having to resort to this wacky """v...
3
2204
by: Andy Visniewski | last post by:
Should be easy, but I've been trying to figure this out for about half an hour with no luck. There is a table 'Cybex' which has all the Cybex products we sell, and a table 'Datasheets' which contains a list of the datasheets available for products. Both tables have a PartNumber column. On with the problem. If i do SELECT * FROM Cybex, it lists the 1000 or so products. and then SELECT * FROM DataSheets, it lists the 800 datasheets we...
3
2973
by: PipHans | last post by:
Hi, Plz, I need some info (SQL2000) :) A stored procedure is like this: "Select table1.id, table1.txt, (select table2.nr from table2 where table2.fk_table1=table1.id) as nr where table1.id<>10" The essence here is that "select table2.nr from table2 where
1
1152
by: hamilton4003 | last post by:
I have two tables (tblRequest and tblDev) whose items have many-to-many relationships with each other. I have set things up like this (simplified): Table 1 fields: tblRequest.PrimaryKey tblRequest.Description example: 10 45 Elm 11 63 Green 12 123 Main Street 13 23 Pine
5
1241
by: r2_r2 | last post by:
I am very much a beginner to python. I have been working on writing a very simple program and cannot get it and was hoping someone could help me out. Basically i need to write a code to print a sin curve running down the page from top to bottom. The trick is I have to do this using only 7-8 lines of code. Any ideas?
7
1438
by: Bastard_Toadflax | last post by:
I'm making a database for a work project, and am having some difficulties (note: I am at the novice end of the MS Access users spectrum). Basically, what I have to do is make a list of managers in the organisation, their contact details, and so on. So the fields I have are as follows: First Name Surname Section Telephone number Department
2
1179
by: e_hobsbawm | last post by:
I have two tables table1: id state ----------------- 10 washington 11 oregon 12 california table2:
4
1224
by: nephish | last post by:
i have seen the join method before, mostly in this group and i want to get it a little better. if i have a list x = how can i make it print as a single string? or make a single string out of it ?
0
928
by: NoncentzTheGreat | last post by:
Hello All, This is me first Post ..Yesssss I am new to sql so I hope I explain this correctly: I used a PATINDEX statement to create a field called UPS_Shipper in my view and a field called UPSCodeShipTo which is renamed from a field I pulled earlier. What I have been tasked to do it to create a statement that will do the following: If there is a value in UPS_CodeShipTo (which there always is) then I need to use that value in a new...
0
9454
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10259
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10101
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9906
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8933
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6710
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5354
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4007
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2849
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.