473,503 Members | 1,136 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Create view query not working .

296 Contributor
The following query is not working -->

create view citydptjoin as select * from segcitypair,segdptret where segcitypair.ticketnostarting=segdptret.ticketnosta rting

Please help.
Mar 29 '07 #1
4 1589
cnplnsk
19 New Member
Hi ,
I am vijay kharde from cnplnsk
As per my information you can't create view in lower version of mysql 5.0

Views are currently being implemented, and will appear in the 5.0 or 5.1 version of MySQL Server.
Mar 29 '07 #2
pankajit09
296 Contributor
Hi ,
I am vijay kharde from cnplnsk
As per my information you can't create view in lower version of mysql 5.0

Views are currently being implemented, and will appear in the 5.0 or 5.1 version of MySQL Server.

Hello Vijay,

You are right.

The version here is old.

What is cnplnsk ?
Mar 29 '07 #3
pankajit09
296 Contributor
When I fire the below SQL I get the error -- Duplicate column name 'id'
I have put aliases still why the error is coming.


CREATE VIEW citydptjoin as select cp.id, cp.departcode,cp.traveldate,dpt.id,dpt.itinerary,d pt.departdate,dpt.returndate from segcitypair as cp,segdptret as dpt where cp.ticketnostarting=dpt.ticketnostarting
Mar 29 '07 #4
ScarletPimpernal
39 New Member
Hi pankajit,

Try this query

SELECT version();

If u get the version 5.0 or greater than 5.0 then u can create Views
Else No ...

The following query is not working -->

create view citydptjoin as select * from segcitypair,segdptret where segcitypair.ticketnostarting=segdptret.ticketnosta rting

Please help.
Mar 30 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

4
10213
by: Surendra | last post by:
I have this query that I need to use in an Update statement to populate a field in the table by the value of Sq ---------------------------------------------------------------------------- Inline...
1
3530
by: Muhyiddin A.M Hayat | last post by:
Dear all, I Have This table Table Billing: id trx_date trx_time depart payment_method billing_amount amount_paid balance creator 1 10/09/2003 ...
3
479
by: di | last post by:
I have a Access Database, and I would like to create a word document that (preferable would filter)links to ACCESS table or query. I would like to print the word document on the filtered record...
2
19030
by: Ray | last post by:
Stop me if you've heard this, but I am running Access 2002 and all of a sudden, if I design a particular form (it's been working fine for ages), Access crashes rather than open it in design view. ...
9
18507
by: Mike Bridge | last post by:
I am using MS Access 2003, and I typed in a query in SQL view which was working fine. Now when I open it, it gives me the error "Join expression not supported". Apparently, Access "fixed" it for...
4
1863
by: PC Datasheet | last post by:
A query based on TblEmployee shows TblEmployee in the query window. Is there a way in design view to change this query to self join T1 and T2 on EmployeeID or does it have to be typed in in SQL...
10
8769
by: Zack Sessions | last post by:
Has anyone tried to create a SQL7 view using the CREATE VIEW command and ADO.NET? If so, is there a trick in trapping a SQL error when trying to create the view? I have a VB.NET app that, amoung...
13
2826
by: forbes | last post by:
Hi, I have a user that used the Query Wizard to create a query in Access. Now she claims that her master table is missing all the data that was excluded from the query. Can you create anything...
3
18680
by: creative1 | last post by:
Here is how you create a complex data report that involves parent and child commands and you can update information at runtime. Its pretty straight forward to work with simple queries; however,...
0
7203
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7089
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...
0
7282
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,...
0
7339
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...
1
6995
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
5017
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4678
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...
0
3157
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
389
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...

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.