7,494 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for SolidSolutions

I am having a hard time understanding subqueries. I am pretty sure that is what I need to accomplish my task, but not sure how to put it together. I have a unique ID field that auto-increments, so that a new entry always gets a higher number assigned to that …

Databases mysql
Member Avatar for d5e5
0
336
Member Avatar for John Linux

Hi, I have the following extract from a table called results. StudentID Course Percent 1005 MAM1 63 1006 PHY2 55 1006 MAM1 71 I need to produce a list of student ID's WHO take MAM1 AND PHY2. I first selected all rows where course is MAM1 OR PHY2, but then …

Databases mysql
Member Avatar for John Linux
0
134
Member Avatar for sundeep_g

Hello Guys....i am very happy to interact with u all. Im new to database. i want to display database names into a dropdown list box and at the same time if i select a particular DB it will display all the tablenames into another dropdown list box... Can any one …

Databases mysql
Member Avatar for sundeep_g
0
126
Member Avatar for jk_bscomp

Hello everybody!!! I just want to ask some internet sites where I can download Oracle server like mysql and sql server because I want to learn about how to use it. I have already knowledge about sql and mysql and how to access them using vb.net, and for more improvement …

Databases oracle vb.net
Member Avatar for Ezzaral
0
273
Member Avatar for niths

hi all, i had 4 text boxes. 1.Emp_id 2.Emp_Name 3.Mobile No 4.Blood group and a search Button. so when i fill any textbox or all the textboxes then it should display the required data. For example: If i want some person details. i know only his name.Then if i enter …

Databases mysql
Member Avatar for smantscheff
0
118
Member Avatar for niths

hi all, i am trying a query but i am not getting the result properly.. Is there any error in my query.. [CODE]$query ="select Emp_Id,First_Name,Last_Name,Gender,Mobile_No,Email_Id,Blood_Group from Employee where"; if($empid!='') { $query1=$query . " Emp_Id like '".$empid."%' and"; // echo $query1; } if($empname!='') { $query1=$query . " First_Name like '%".$empname."%' and"; …

Databases mysql
Member Avatar for niths
0
141
Member Avatar for arctushar

Hello I want to do that after submitting form it will insert in a table. the table has auto increment field. name of the field is ID. Now how can I get the ID number of that inserted data's ID number. for example I have a table which field are …

Databases mysql
Member Avatar for sops21
0
136
Member Avatar for star_lavender

Hi. I want to have a query as below. [CODE] $sql = "SELECT amount FROM payment WHERE id = '$a'"; $result = mysql_query($sql); $row = mysql_fetch_array($result); $amount = $row['amount']; [/CODE] The value for $a variable is getting from the selection on drop down list. For example, the user select id=11, …

Databases mysql
Member Avatar for Borzoi
0
139
Member Avatar for k_manimuthu

I have a table like below format. [CODE] CREATE TABLE Customer ( number VARCHAR(40) NOT NULL, --col 1 name VARCHAR(100) NOT NULL, --col 2 ssn VARCHAR(50) NOT NULL, --col 3 age INTEGER NOT NULL, --col 4 ) [/CODE] I want to add a new column in the table. If I …

Databases mssql
Member Avatar for pritaeas
0
158
Member Avatar for Aldius

Hello I had a question about MS-SQL. I am trying to write a query which will select a group of values from several tables (prodId, Amount, BreakLevel, TotQuantity, Price) There are several amounts associated with different break levels. i.e. a break level of 15 might get an amount of .10, …

Databases mssql sql
Member Avatar for rch1231
0
202
Member Avatar for essence388

According to Codd's Tweleve rules which are considered as a basics of the relational database system, which one of the following three systems: Oracle, DB2 and SQL server is most applied and relational than the others? Please give me your opinion and why.

Databases oracle sql
Member Avatar for rolandsmokit
0
121
Member Avatar for andydeans

hi, i am struggling and it will prob be a simple answer but cannot figure it out at all today. checked online but no use. my to create my view i need to compare a column to a yes or no. at the moment i have tried this but no …

Databases mysql
Member Avatar for andydeans
0
85
Member Avatar for ubi_ct83

Hi, anyone can help me on how to connect PHPMyAdmin with java?

Databases java mysql
Member Avatar for AndreRet
0
80
Member Avatar for Ikomasoji

Hi, I'm fairly new to database design. I am working on a personal project and I had a question about general design structure. I am trying to design a database that I want to create for a collectible card game. The idea is that each different type of card will …

Databases database-design
Member Avatar for pritaeas
0
123
Member Avatar for flushfire

I have a Subjects table with a field Prerequisites, which contains data similar to the Subject IDs in the same table. So for example a subject4 may have the prerequisites subject2 and subject3. The contents of the Prerequisite field are delimited by ORs and ANDs, meaning if there are more …

Databases microsoft-access
Member Avatar for flushfire
0
89
Member Avatar for bimaljr

Hello I want a query to get my result I have two tables: 1) articles 2) comments 1) This is my articles table: [code] -------------------------------------- id | article_title | article_body | -------------------------------------- 1 | dummy article | some body | 2 | article2 | body2 | 3 | article3 | …

Databases mysql
Member Avatar for rch1231
0
192
Member Avatar for dennishall

Good day: I'm creating a form to write SEO into my php page head and have run into a block on the mysql_query() UPDATE function. I just cannot seem to get it to write multiple fields in a row. What I've done so far is as follows: [CODE] <? if …

Databases mysql seo
Member Avatar for dennishall
0
315
Member Avatar for yugoza

I'm currently working on a data model for "Project Allocation System" and I have done most of the ER-to-SQL transformations, but I'm struggling to deal with the two ternary relationships that exist in my model. So far, I have the following: [B]1 Mapping entities and their attributes[/B] [B]Module_schema[/B] = (module_ID*: …

Databases
Member Avatar for robertmacedonia
0
1K
Member Avatar for SunnySideUp

Hi, I am looking to create a Jobs Board Database which will work with PHP 5 and PayPal, but I am having trouble figuring out the relationships: I know I might have a table for Company details and another one for Job Details but what do I do with regard …

Databases mysql
Member Avatar for SunnySideUp
0
112
Member Avatar for teedoff

Hi I have a dynamic page that doesnt validate because I have special characters such as "&" in the data. I was wondering if I should do a find and replace of all those ampersand signs and replace them with the safe "&amp;" code. Thanks for any help or suggestions …

Databases mysql
Member Avatar for griswolf
0
189
Member Avatar for andydeans

hi, i have a view in the database which queries about 6 tables to produce the results and works great. however i need to create a view based on the info from this view along with data from another table. when creating the view that queries the view and table …

Databases mysql
Member Avatar for andydeans
0
119
Member Avatar for dre-logics

I use mysqldump.exe (Size 2.281 Kb, date 22-2-2010, time 18:06) I use MySQL Workbench 5.2 OSS Revision 6091 I have database [COLOR="Red"]TEST [/COLOR]with table [COLOR="red"]NAW[/COLOR] I use the i use the following statement to export table [COLOR="red"]NAW[/COLOR] [CODE] C:\mysqldump.exe --user=XXX --password=XXX --host=localhost test naw > c:\MybackupNAW.SQL [/CODE] This export file …

Databases mysql
Member Avatar for dre-logics
0
844
Member Avatar for Viji

Hello everyone, I have a little bit problem here.I have installed PHP version 4.4.1 and it's working well. I want to connect PHP with MySQl . I have also installed MySQL and it installed successfully. Inorder to configure PHP to work with Mysql, I did the following changes in the …

Member Avatar for kwesiaryee
0
701
Member Avatar for zachattack05

Not sure if this actually qualifies for this forum so please by all means move this topic to the appropriate place if it isn't. I'm writing a C# Windows Application (not a web app) and it uses either an SQL or Access database to store its data for multiple network …

Member Avatar for Ramy Mahrous
0
207
Member Avatar for Derice

I was trying to backup a database with the name test. I got the error as below: ERROR 1064 (42000): You have an error in your SQL syntax; check...... This error occurred when I am executing (command line) mysql> mysqldump -u root -p password test > test.sql; How could this …

Databases mysql
Member Avatar for Derice
0
142
Member Avatar for MARKAND911

How to use TOP(1) keyword in MS Access query. select * TOP(1) from mytable orderby mycolumn desc; this querry gives me error; Any other alternate to implement this code;

Databases microsoft-access
Member Avatar for priyasudhakar
0
96
Member Avatar for harrismahadevan

hai its mahadevan,please reply how to connect oracle with vb.

Databases oracle
Member Avatar for debasisdas
0
55
Member Avatar for ilansuganya

Hi Friends I have a challenging task in SQL (Oracle). Let me know if you have any answer. I have 2 tables. 1. Dept 2. Employee Dept [B]Dept_No Dept_Name[/B] 10 Admin 20 Data Warehousing 30 HR Employee [B]Employee_No Employee_Name [/B]Dept_No[/B] E01 Sangeetha 10 E02 Michael 10 E07 Immanuel 20 E11 …

Databases oracle sql
Member Avatar for debasisdas
0
133
Member Avatar for aman rathi

hi i am using oracle 9i and now a days i am learning sql. due to some problems i have to change my system and i will install oracle 9i in my new system, but problem is that after installing i need all that old tables that i have created …

Databases oracle sql
Member Avatar for debasisdas
0
187
Member Avatar for Scotto13

I have the following data in a field in my SQL table. I want to break up the data in this field so I can use it in reporting: Sample records: Record 1: Player: (265613) Miss Linlde M Simonds, Promo Adjusted -> 10.00, Beg. Bal -> 0.00, End Bal -> …

Databases mssql sql
Member Avatar for gbann123
0
257
Member Avatar for andydeans

hi, i want to add an end time in my query using my time to call column. at the moment i have a time to call which will be the start time however i want to add timetocall as endtime which is 15 mins after the timetocall column. i am …

Databases mysql
Member Avatar for andydeans
0
181
Member Avatar for jimmiller96

Hi all, Fairly new at SQL, and running into the following problem. I am trying to create a query to count the number of unique fields in a column and display, but can't seem to get it right. For example, each day there are x number of entries from y …

Databases mysql sql
Member Avatar for Brillig
0
277
Member Avatar for kadriirdak

Hi There, I am using a sql query to show a row to users. The Problem is in the database there are single as well as duplicate records. My 1st code is – Works good if user has no duplicate records; [CODE] SELECT contacts.forenames, contacts.surname, addresses.postcode, contacts.contact_number FROM contacts LEFT …

Databases mysql sql
Member Avatar for kadriirdak
0
140
Member Avatar for artvor

Hello, it's about a week that I'm searching for a simple script that do this: So when value is 0 checkbox must be not checked and the opposite if value is 1... So when I check box it must send value= 1 to my mysql DB and if it's not …

Databases mysql php
Member Avatar for akvlko
0
230
Member Avatar for arjen

hello guys i have a question bout my sql. I create a system in vb.net using my sql database but the problem when i create a report using microsoft report viewer it does not detect mysql database whether i create a new connection..what is the problem??..

Databases mysql sql
Member Avatar for arjen
0
157
Member Avatar for ozlem.a17

For an ER diagram, I have to: 1. Produce a set of relations. Indicate all primary and foreign keys. 2. For each relation give the minimal basis for all FDs on the relation, and state whether the relation is in 3NF or BCNF and why. I am fine with doing …

Databases oracle sql
Member Avatar for Anonymous01
0
93
Member Avatar for arctushar

Hi I have table consist of [B]ID,name,father & mother[/B]. Id is uniq. Now I want that when anyone enter id, it will give [B]name,father and mother[/B]. what is the easy and small way or script. please help me me

Databases mysql
Member Avatar for jsmall26
0
97
Member Avatar for Ahiru

I would like to calculated an expected profit. I have got the following table: OrderID productID regionID available_volume price sales_per_day What I would like to have: A table grouped by productID and regionID each with the (expected) profit per product and region. Profit is calculated by price*expected_sales with following conditions: …

Databases mysql
Member Avatar for rch1231
0
133
Member Avatar for Coyboss

Hi all, I am trying to get a SQL Server statement to work for a class I am taking on MS SQL Server. Here is what I am supposed to do; 1) Write a SQL query that joins two tables in the example database and uses BETWEEN to restrict record …

Databases mssql sql
Member Avatar for rch1231
0
141
Member Avatar for macausite

I want to create a social website which people can share their photos with friends and I don’t know if it is correct or there is something wrong with it. I would be very grateful if someone could have a look at it and give me some feedback on it. …

Member Avatar for babannasd
0
93
Member Avatar for jackparsana

HI, pls help me in this.. How to import Excel Sheet data into SQL Server 2008.? i use Excel 2010. SQL Server 2008. how to import data? thanks in advance. jack

Member Avatar for Bruce100
0
243
Member Avatar for jonow

Hello. To start off I am pretty bad at MySQL and PHP. I want to set something up that people can enter their cell phone numbers and it would be added to a server. Then I could go and send a message out to all of these numbers. I want …

Databases client-server mysql php
Member Avatar for Bruce100
0
108
Member Avatar for RobotFX

Hi! I'm looking for a way to search and replace certain strings in a database table I have. Those are the commands I execute now from within phpmyadmin: [CODE]UPDATE `feeds` SET `title` = REPLACE(`title`,"ă","a") UPDATE `feeds` SET `title` = REPLACE(`title`,"î","i") UPDATE `feeds` SET `title` = REPLACE(`title`,"ÅŸ","s") UPDATE `feeds` SET `title` …

Databases mysql
Member Avatar for RobotFX
0
2K
Member Avatar for dan_ord

Hi all, I'm currently working on a holidays database where i need to retrieve the latest offers and display them. I've managed to get that working fine. However what i want to be able to do is kinda like a SELECT DISTINCT to only show 1 destination, and have the …

Databases mssql sql
Member Avatar for Brillig
0
163
Member Avatar for teedoff

Hi ok I have a table: "rlbTerms" that contains basically a list of terms and their definitions. I create a page with a query that returns all the terms and definitions in a table layout and are order by terms ASC. What I want is a way to create anchor …

Databases mysql
Member Avatar for teedoff
0
104
Member Avatar for kadriirdak

Hi There, I do have 2 tables; Contacts table, Communications table Contacts table rows are; contact_number, forename, surname Communications table rows are; contact_number, number (number is used for emails) What I have is a little form to check/find out the contact number by filling; surname forename and email. Once they …

Databases mysql sql
Member Avatar for kadriirdak
0
234
Member Avatar for FlyByNight73

Hi All, I am working on a booking system for vacation rental properties. I have two (simplified) tables properties and propertyAvailability: properties:- propID propName propertyAvailability:- propID dayOfTheYear availabilityStatus Rather than use dates for the bookings I convert everything to dayOfTheYear (using ColdFusion) and each DOTY for each property has a …

Databases coldfusion mysql sql
Member Avatar for FlyByNight73
0
206
Member Avatar for venet

Hey guys, I have a table called 'rank' which contains information about music - more definitively, it stores peoples votes (1 to 5) on a particular song. The table layout is as follows: id | songid | userid | blurb | useful | useless | thetime I have written a …

Databases mysql
Member Avatar for rch1231
0
109
Member Avatar for divyakrishnan

There is an a problem on declaring variables on MYSQL stored procedure.The code I used I used is shown below. [CODE]DELIMITER $$ CREATE /*[DEFINER = { user | CURRENT_USER }]*/ PROCEDURE `emp`.`third_SP`() /*LANGUAGE SQL | [NOT] DETERMINISTIC | { CONTAINS SQL | NO SQL | READS SQL DATA | MODIFIES …

Databases gui mysql sql
Member Avatar for hielo
0
157
Member Avatar for iammirko

Hi I am using the following query: [CODE]"SELECT * FROM members WHERE name LIKE '$searchKey%';"[/CODE] Where $searchKey is a variable that contains the string to be searched. The problem is that the code only searches until it has found a space and even if characters after space match the value, …

Databases mysql
Member Avatar for iammirko
0
101

The End.