7,494 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for mrhankey

Hi, I have tried to Google this but cant find anything. I want to use a select AS statement to select multiple columns. i.e. [CODE]Select unitno country price AS propertyref[/CODE] is this possible using multiple columns AS one reference? many thanks

Databases mysql
Member Avatar for mrhankey
0
2K
Member Avatar for sonakrish

hi there... i need to know the difference between varchar and varchar2 datatype in oracle

Databases oracle
Member Avatar for sham.karankal
0
97
Member Avatar for altarek

i have two tables like this i want retrive cname from person where cid duplicated at per_db and did at per_db=$value i want sql statment return "wael" from person person cname | cid ----------- gamal | 1 wael | 2 samy | 3 ------------- per_db cid | did ---------- 1 …

Databases mysql
Member Avatar for smantscheff
0
123
Member Avatar for Xintare

Hi there, I have two tables. The first one holds information about cities: Locations: [code] locID | locationID | locationName | countryCode | 1 | 2922239 | Berlin | de | 2 | 291074 | Paris | fr | 3 | 295522 | Orlando | us | 3 | 292345 …

Databases mysql sql
Member Avatar for smantscheff
0
151
Member Avatar for robertw

Hi Guys, I have a predicament here which I think is really easy if you get it right. I just cant wrap my brain around it for the moment (probably been staring at the screen too long) I have two table (financial data) Table 1 looks as follows id account …

Databases mysql
Member Avatar for smantscheff
0
130
Member Avatar for hime

i have this scenario for a school project: You have been sub-contracted to design the database system for Marlowe Interiors. Marlowe Interiors is a medium sized interior design company that does building work and decorating. An initial analysis of Marlowe Interiors has identified the following requirements:  Marlowe Interiors keeps …

Databases database-design
Member Avatar for griswolf
0
124
Member Avatar for shinsengumi

Hi everyone! I recently created a MySQL table that has three columns: (1) integer ID (2) integer num1 (3) integer num2 Now, I have a C program that waits for the user to input an integer ID and when there is an input, the corresponding num1 and num2 in the …

Databases c mysql windows-xp
Member Avatar for smantscheff
0
334
Member Avatar for tyson.crouch

Hi Guys, Back again. I'm having an issue with my java with mysql. I have the following query generated through my java, which reads in about 3k records from an excel file and churns out an sql query for me. For the purpose of this forum, ill show the first …

Databases mysql
Member Avatar for tyson.crouch
0
82
Member Avatar for sangfroid

Hi I am trying to write a function in which I customize my select statement. But it is not working as i desire... It is as [CODE] declare @column_name nvarchar(10) set @column_name = 'original' select @column_name from data [/CODE] Here original is the name of one of the columns. I …

Databases mssql sql
Member Avatar for harie.in
0
138
Member Avatar for Vanquish39

Hey guys, I'm a newbie to mysql and wanted to know how can I connect 2 tables together with a many-to-many relationship. This is what I have. [CODE] create table pharmacy ( pharmacy_id int not null primary key auto_increment, businessName varchar(25) not null, location varchar(25) not null ); [/CODE] [CODE] …

Databases mysql
Member Avatar for drjohn
0
171
Member Avatar for mihle

Hi I would like to save one table's data to another table. The code that I have wrote is this: [code] con.Open(); string copyData = "INSERT INTO Changes(IP,ServerName,[Type of Server])SELECT IP,Server,Name FROM Server"; cmd = new SqlCommand(copyData, con); int returnValue = cmd.ExecuteNonQuery(); con.Close(); [/code] and it seemed working but when …

Databases mssql
Member Avatar for gogolo
0
99
Member Avatar for nasablast

Using javascript, a field in an html form is formatted for time. When the user types in 344, the field formats onblur to 3:44. This field is then echoed in PHP an appears properly formatted. However, in the MySQL database it is inserted into, it appears as only "3". Everything …

Databases mysql
Member Avatar for nasablast
0
58
Member Avatar for laura203

This is not a homework assignment. :) I'm a MySQL newbie and we just bought a product that uses it. The vendor has indicated that what I want is a special request and wants to schedule professional services time (several weeks in the future) to write us a personalized script. …

Databases gui mysql
Member Avatar for laura203
0
155
Member Avatar for Borzoi

I'm currently building a website for a small charity and they've asked me if it was possible to make an admin area where they could access some of their work when they're out and about so they don't have to fill in forms twice. I can do this as I …

Databases mysql php
Member Avatar for Borzoi
0
172
Member Avatar for mrhankey

Hi, I have been trying to execute a query and for some reason it returns 0 when there should be 1 in the result. [CODE] SELECT count(TaskID) AS DueToday FROM tasks WHERE TaskDueDate = CURRENT_DATE AND Completed = 'No'[/CODE] I have tried NOW() and various others reference [url]http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html#function_current-date[/url] however it …

Databases mysql
Member Avatar for d5e5
0
174
Member Avatar for akndsandhu

hi 2 all m new to mysql and want to make a table in mysql so please help me Table for Name Email Phone number Comment

Databases mysql
Member Avatar for jlego
0
109
Member Avatar for michael1999

hi when i check apache status there is too many line like 198-92 - 0/0/4 . 0.00 78719 0 0.0 0.00 0.00 127.0.0.1 noc1.server.com OPTIONS * HTTP/1.0 i think this is related mysql or not is there anyway to close this pid in 5min or 10min? [CODE]0-112 1881 0/16/24053 _ …

Databases apache mysql
Member Avatar for michael1999
0
94
Member Avatar for siddhesh.kerkar

Hi, I have table structure as follows Table Name- facilities facility_id | hotel_code | facility_name 1 1 Parking 2 1 AC 3 2 Parking 4 3 Parking 5 3 AC 6 4 AC Now i have to find the 'hotel_code' that having 'Parking' and 'AC' both facilities ie 'hotel_code' as …

Databases mysql sql
Member Avatar for siddhesh.kerkar
0
95
Member Avatar for bluetoot

Hello Good People. I need help with my database script,to an extent i have created all the tables i need...for 5 straight days i cant seem to find the solution to this please read my script below 1. i have a database with 2 tables, the admin andm users_cv tables …

Member Avatar for pritaeas
0
176
Member Avatar for Ignatius88

I have been searching for ways to do this but I was not able to find any. What I want to do is this: movie_genre (Table) movidId movieTitle movieGenre (Varchar) 1 Copying Beethoven (2006) Biography 2 Copying Beethoven (2006) Drama 3 Copying Beethoven (2006) Music movie_plot (Table) movieId movieTitle moviePlot …

Databases mysql
Member Avatar for Ignatius88
0
146
Member Avatar for tutorim

Hi there, Noob here sry. Mysql DB 1. How can i insert an H1 tag <h1>Listings</h1> to a table structure as field ? A functional H1 tag. 2. How can i insert or import a nationalities csv file to a table ? Thx a lot and happy new year!!

Databases html-css mysql
Member Avatar for smantscheff
0
210
Member Avatar for BaSk

I'm trying to run a date range query which works, but I also need to get data outside of the date range inside of the same query which I get to work. The issue I'm having is when the start date is in say 2011 and the end date is …

Databases mysql
Member Avatar for BaSk
0
246
Member Avatar for ubi_ct83

hi guys, thanks for viewing my thread. i have a program in java application and i want to connect to mysql database because i need to use database for a few parameter.the result will b showed in web-page using php. my question is how can i connect my program to …

Databases java mysql
Member Avatar for smantscheff
0
165
Member Avatar for HelenLF

I am displaying data from an sql database in a textarea which will be altered by the user then re-submitted to the database. The problem is displaying a line break. I get <br /> displayed in the textarea rather than the newline. Can anyone help?

Databases mysql
Member Avatar for HelenLF
0
112
Member Avatar for ggbard

I'm building a local database with VS.Net, using C#. I have constructed the database and filled it with data. I've already been through the process of connecting to the \bin copy of the Db and setting the file to "Do Not Copy". Now, I want to design Views in the …

Member Avatar for ggbard
0
170
Member Avatar for AliHurworth

Hi, can anyone help with formatting a date range query in MySQL? It's just a form to enter two dates, and a second page to run the query and show the output. The form looks like so: [CODE]<form id="getdate" action="tracking_result.php" method="post"> <table> <tr> <td> <input type="radio" value="single" checked="checked" name="type"/> </td> …

Databases mysql php
Member Avatar for AliHurworth
0
259
Member Avatar for ng38

Hi, I have two tables where both contain the ID number and Date. The first table will always have a date and the second table will never have a date. Basically I want the query to bring back a result set that if the ID is in table 1, then …

Databases mssql
Member Avatar for eralper
0
133
Member Avatar for shinsengumi

Hi everyone! Is there a way to set a MySQL server to not automatically start execution until prompted by the user? I recently installed a MySQL server on Windows and I'm having a little bit of problem at start up. Everytime I go to the command prompt to type the …

Member Avatar for shinsengumi
0
3K
Member Avatar for KE50

Hello all, I am new to MYSQL programming, although i have been working with MSSQL for a while now. I am using delphi on a project and the query below does not return any results, just cant find what is wrong with it Select Airwaybill, SDate, BLAccount, RCountry, PackageCodeDesc, TotalWeight, …

Databases delphi mssql mysql
Member Avatar for KE50
0
140
Member Avatar for satish.paluvai

:?: how to delete all the tables in the a user at a time?

Databases oracle
Member Avatar for vijin
0
198
Member Avatar for MDanz

when i put this in phpmyadmin i get errors... can anyone look over it and find a mistake.. [code]CREATE TABLE Student { SID int NOT NULL default, SNAME varchar(200) NOT NULL default, ADDRESS text NOT NULL default, POST_CODE varchar(10) NOT NULL default, PHOTO mediumblob NOT NULL default, Primary Key (SID) …

Databases mysql
Member Avatar for pritaeas
0
135
Member Avatar for Perry31

Hi, Is there anyway to insert/add a new column between two column in a table without deleting any other column???

Databases oracle
Member Avatar for Aqua_annie
0
91
Member Avatar for n_kip

Hi, I have three tables as below. tbl1 [CODE]eid qnt pb 12 3 1 13 1 1 23 3 1[/CODE] tbl2 [CODE]tid eid fx so 1 12 0 1 2 13 0 1 3 23 1 1 4 23 0 1[/CODE] tbl3 [CODE]tlid tid eid fx 1 1 12 0 …

Databases mysql
Member Avatar for n_kip
0
143
Member Avatar for WHchaz1027

Hi geeks, I really need your help. I want to query in a table in MS SQL using a data in another table. This might give you an idea on what I am talking about. This is the query I've constructed : "SELECT TABLE1.FIELD1,TABLE1.FIELD2 FROM TABLE1, TABLE2 WHERE TABLE1.FIELD3 = …

Databases mssql sql
Member Avatar for WHchaz1027
0
93
Member Avatar for artie77

I have been trying to download the community server edition of MySQL for 2 days with no success. I was able to download the installer and found the ZIP archive (both downloaded and mirrored properly) which I was also able to download but I cannot for some reason open the …

Databases mysql
Member Avatar for dodgeitorelse
0
118
Member Avatar for rahulephp

[b]How to speed up the Group By Clause for a large 3GB database.[/b] I am using Group by clause for a large database having 148 columns and 5 million rows with approx 3GB of size. We need to apply the Group by clause on approx 1,00,000 rows at a time …

Databases mysql
Member Avatar for smantscheff
0
710
Member Avatar for MARKAND911

I want to find out days gap between two dates excluding sunday. How can i do this in oracle. Please help me.

Databases oracle
Member Avatar for MARKAND911
0
89
Member Avatar for himmat.m4

Hi, I am working on web application in java. I need to copy table from local database to web table database. So please help me solve this query. Thanks in advance.

Databases mysql
Member Avatar for smantscheff
0
130
Member Avatar for Orthodox73

Hello, I have table with test results. Every user have 3 records in the table RESULTS Table RESULTS contains fields USERID (int), TEST_POINTS (int), TEST_TIME (int); I need query to sort up results, but only the best result per user. Best result for user is one with MAX points for …

Databases mysql
Member Avatar for smantscheff
0
121
Member Avatar for daviddoria

I have a database, test.db, with a table called Events. I tried this: [code] <?php try { // open the database $database = new PDO('sqlite:test.db'); $result = $db->query('SELECT * FROM Events'); foreach($result as $row) { // both of these lines produce a blank page //echo $row['EventName'] . ' | ' …

Databases mysql php sqlite
Member Avatar for daviddoria
0
109
Member Avatar for DCSS

I have a table with one record per certification a user has. So, user SMITH can have multiple records, one for DMV another for CPT and another for ICD. SMITH has three certificates but can have up to 20. The desire is to have a second table with one record …

Databases mssql sql
Member Avatar for DCSS
0
198
Member Avatar for lili.edryana

Hello fellows. I'm creating a new oracle database table. My table name is [B]tblTest[/B]. But it returns an error code ORA-00903: Invalid Table Name. I dont know why this happen. I think the table name is right. But what is the problem actually. [URL="http://img820.imageshack.us/img820/3946/nonametgm.jpg"]http://img820.imageshack.us/img820/3946/nonametgm.jpg[/URL] Thank you.

Databases oracle
Member Avatar for debasisdas
0
103
Member Avatar for Superd00d

Hey there, I was wondering if I could get some guidance on how I could go about handling this problem. I'm creating a simple version control system database. The tables look like the following: [CODE]CREATE TABLE Users ( [UserID] INT IDENTITY(1,1) NOT NULL PRIMARY KEY, FirstName VARCHAR(32) NOT NULL, MiddleInitial …

Databases mssql
Member Avatar for pritaeas
0
275
Member Avatar for Shankye

I am new to SQL .. [code]SELECT status FROM statuses ORDER BY date;[/code] I know this will order by date but i want to alter the table and rearrange them by datestamp.. Is it possible to alter like that ?

Databases mysql
Member Avatar for Shankye
0
105
Member Avatar for jazzyb

I have table names 'payroll' with following data month , pay January , 1200 March , 1500 December , 2000 I want the following result Janury , 1200 February , 00 March , 1500 April , 00 May , 00 June , 00 July , 00 August , 00 September …

Databases mysql sql
Member Avatar for drjohn
0
11K
Member Avatar for daviddoria

Hi all, I am transitioning a bunch of data from html (yuck!) to some sort of separated schema. I was going to use xml: [code] <events> <event> <title> <date> <speaker> <description> </event> </events> [/code] but now I am wondering if I should use a real database instead. Can anyone comment …

Databases mysql sql xml
Member Avatar for d5e5
0
113
Member Avatar for davidwn1

Hi I am running a PHP-based intranet site where the main page has to refresh its view every minute in order to show the most up-to-date information from an MSSQL database. At any one time there are only about 20 entries that need to be shown, but the main database …

Databases mssql
Member Avatar for davidwn1
0
84
Member Avatar for everhett.raman

Hi, As i was experimenting stored procedure's TRY-CATCH with RAISERROR, came across this issue. Would like some opinion on this. Microsoft sites documented as follows: SQL Error 0 - 10: caught in the TRY-Block, i.e. will not reach CATCH-block. SQL Error 11 - 19: caught in CATCH-Block SQL Error 20 …

Databases mssql sql
Member Avatar for fx1250s
0
217
Member Avatar for Tank50

Hi Guys I have an application that developed using ASP.net.There is cancel option,user can select number of item code and cancel it,but there is isssue.The issue is once user select more than 200 item code to cancel then it generate the error messsage.Error message is "Time Expird or server is …

Databases asp.net mssql sql
Member Avatar for buddylee17
0
671
Member Avatar for vinayak.v

hi.. i'm trying to retrieve the data from database using ssis package.. database name is employee which contains 48 tables and it is around 20GB of memory.. it is a production database.. now what i want is to retrieve the data for each four hours.. i.e i want to execute …

Member Avatar for buddylee17
0
163

The End.