7,494 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for greatcornholio

Hi all, this is maybe a big stupid question, but cant get this to work thing is that i have 5 tables: airlines - hotels - costs - projects and payments being costs my main table. In this costs table I need to have in the 'total' column the sum …

Databases mssql sql
Member Avatar for greatcornholio
0
202
Member Avatar for spowel4

I'm new to stored procedures and, really anything about sql beyond the basic SELECT/INSERT/etc... so this is probably just something I don't understand but my problem is that my stored procedure seems to only return the last row of the result set (i.e. if it should return 10 items it …

Databases mssql sql
Member Avatar for adam_k
0
1K
Member Avatar for godwinaka4life

Hello everone, I am designing a website with php for different users. And I will like to give each user a unique page according to what their input in the form is, I want to MySQL database to save the information and retrieve it each time a user login into …

Databases mysql php
Member Avatar for simplypixie
0
91
Member Avatar for pawan768

I try many tips but not able to connect two table with each other! Actually i want something like that , I insert into one table and if data also used by another table (Data automatically insert in another table also by submitting data in first table)

Databases mssql
Member Avatar for adam_k
0
149
Member Avatar for gunnerone

Hi, I am just trying to normalize these data here: An initial call is logged by a first line support analyst who assesses the severity of the problem and places the call in a pool. The call is picked up by a problem analyst who in turn allocates it to …

Member Avatar for BitBlt
0
143
Member Avatar for strongpot

Hello, I have a script that among other things, creates a table with a variable being the table name. This worked fine when i was using the variable "$name". Since then I've realized that i need the table name to be "$merchid" (primary key from previous table. I've used "$newid …

Databases mysql
Member Avatar for smantscheff
0
246
Member Avatar for riya_developer

Hello, I have two databases in MySql... Master database and child database.. In master database there are two tables...Accountant(Having Primary Key AccountID) and Client(Having Primary Key ClientID)... Now for each client master database remains same and child database is created for each client... In child database,there are several tables related …

Databases mysql
Member Avatar for urtrivedi
0
244
Member Avatar for ssreevidya.m

Hai , I have a table Student_transport_Details having columns : UserId DesignatonId StartDate Enddate I need to get records for a particular month. Can i retrieve records by passing MonthId [between 1 -12]. Thanks in advance

Databases mssql sql
Member Avatar for red_ruewei
0
5K
Member Avatar for aneeka

Good day! Anyone knows how to select latest record of an item..here's the scenario. I have records with the same data except for the date. Example: product_code productname item_code date PR-123 abc TY-01 2011-10-11 PR-123 abc TY-02 2011-10-11 PR-123 abc TY-01 2011-10-13 PR-123 abc TY-02 2011-10-13 PR-123 abc TY-01 2011-10-16 …

Databases mssql
Member Avatar for BitBlt
0
121
Member Avatar for poopoo_pp

Hi all Not sure if im posting in the right section so sorry if i am. I have been looking for an open source asset/inventory solution for a friend. I came across Free CMMS on sourceforge.net and for ease of installation and testing installed the latest version of XAMPP as …

Databases apache mysql php
Member Avatar for pritaeas
0
405
Member Avatar for tanha

I came again across "http://www.mysqludf.org/lib_mysqludf_str/index.php" and found the library useful but I could not figured out how to install and use them on WAMP Server version 2.0 with MySQL version 5.1.36 on Windows 7. I did followings steps but did not get the work done: 1. Created a directory named …

Databases mysql
Member Avatar for tanha
0
885
Member Avatar for tanha

Hi, I would like to track students activities by the teacher and this is visible by the students parents "dependents" and therefore the parents could give comments to the activity issued by the teacher and the teacher could respond to parents comment too. So I designed the ER Diagram, but …

Databases
Member Avatar for tanha
0
152
Member Avatar for p4uk80

I am having a table in oracle without a primary key and table is having 5 columns. Every time while making the insert, i have to ensure that the same combination of records are not bing inserted. For every row if a specific value has been inserted then a common …

Databases oracle
Member Avatar for p4uk80
0
120
Member Avatar for emily-bcot

[CODE]----------------------------------------------------------- chan1 |chan2 |chan3 | captureTime |id ----------------------------------------------------------- 20 |21 |25 | 2011-10-11 00:00:00 |1 ----------------------------------------------------------- 21 |18 |19 | 2011-10-11 00:01:00 |1 ----------------------------------------------------------- .... .... .... ----------------------------------------------------------- 20 |25 |21 | 2011-10-11 00:15:00 |1 ----------------------------------------------------------- 21 |18 |14 | 2011-10-11 00:16:00 |1 .... .... .... ----------------------------------------------------------- 15 |26 |23 …

Databases mysql
Member Avatar for smantscheff
0
207
Member Avatar for chinee

very new to database and mysql, i would like to know if it is possible to create a drop down box using just mysql within the database and if so how is it down.

Databases mysql
Member Avatar for chinee
0
62
Member Avatar for microbert

Hi, I have build my website with PHP and MySQL and when I was debugging I noticed a problem which I cannot find a way around it. Basically I have a search box on my website, which will search from a column that I have on MySQL database. Now I …

Databases mysql seo
Member Avatar for smantscheff
0
165
Member Avatar for violette

I'm having problem to update the data into mysql database. for insert new data, it works nicely but if i want to update the existing data, it will hang my pc. even if i debug line by line, it shows like infinite loop. which part has gone wrong? i'm totally …

Databases mssql
Member Avatar for violette
0
165
Member Avatar for brsharvari

can u please provide me with a c/c++ program to add a user to MySQL and allow him to only insert into the database

Databases c c# c++ mysql
Member Avatar for ushapriya
0
255
Member Avatar for rajandass65

hi, my table has following fields ForumPostsId(primary key),ForumPost,ParentPost parentpost can have 0(which means its parentpost) or ForumPostsId(which means its a chlid post related to parentpost) i need to generate a list which will the show parentpost and count of child post related to parent post Any suggestion!!!!!!!!! regards rajan

Databases mysql
Member Avatar for simplypixie
0
83
Member Avatar for moone009

I have a simple ssis package that grabs data from sql server 2005 then puts that into a flat file and then sends it to my webserver. This package currently just pulls data from one db. I would like it to do this for 10 dbs now therefore creating 10 …

Databases mssql
Member Avatar for moone009
0
111
Member Avatar for begueradj

Hello people, I want to create 'Voyageur' table that references a successfully created table which name is 'Categorie',. But I get this error message when I click on 'run': [COLOR="Red"]ORA-02438: Column check constraint cannot reference other columns [/COLOR] Here is my 'Voyageur' Table that makes me a problem around its …

Databases oracle
Member Avatar for begueradj
0
309
Member Avatar for reco21

can someone help me with this pls.. [CODE]DELETE FROM site_post, site_comments WHERE site_post.id=$id AND site_comments.matchid=$id[/CODE] needing to delete two rows one from each table.

Databases mysql
Member Avatar for pritaeas
0
92
Member Avatar for Arjun_Sarankulu

create table test2 (Roll_ID int ) insert into test2 values(1) insert into test2 values(2) insert into test2 values(3) insert into test2 values(4) insert into test2 values(5) i want output as RollId

Databases mssql
Member Avatar for adam_k
0
89
Member Avatar for wezel

Hello, I am trying to query a table for todays date based on this format mm/dd/yyyy hh:mm:ss AM/PM I tried date() but it only returns results based on the mm/dd/yyyy formate. Any assistant is apprecaited! Thanks, Wez

Databases microsoft-access sql
Member Avatar for adam_k
0
97
Member Avatar for Baxtula

Hello, I am a computer science student working as a bartender in a restaurant. My boss was complaining that his monthly inventory audit was taking too much time (as he has about 2000 unique items to count) and I suggested I could build a mysql database to help him (and …

Member Avatar for Baxtula
0
299
Member Avatar for martin11ph

Hi guys, I'm wondering if there is a way to solve this problem. Currently, I have an SQL statement that goes this way: [CODE]SELECT distinct name,id from list [/CODE] My understanding is that it selects the things that are distinct on both tables. Example: id name 1 Joe 2 Joe …

Databases mysql php sql
Member Avatar for martin11ph
0
155
Member Avatar for phoenix_2000

Heya people, Here's my problem: i have a (for me quite lengthy) piece of SQL code which is automagically generated by my own application. However, when i try to execute it, it gives me an recordSet error ("Either BOF of EOF is true, or the current record has been deleted"). …

Databases asp mssql sql
Member Avatar for phoenix_2000
0
245
Member Avatar for narekm

Hi . I am building a live chat using mysql and the database is updated because of users entries . So the number ow rows in the table changes constantly . And need to use a query which will select the rows that hasnt been selected. SO how do I …

Databases mysql
Member Avatar for urtrivedi
0
147
Member Avatar for ssreevidya.m

Hai , I have 2 tables 1. [B]Transport_Details[/B] having columns user_id FareStageId StartDate EndDate and 2. [B]Route_Fee[/B] having columns FareStageId monthId fees I need to get a monthwise list by passing monthid. My problem is that , if start date and enddate of a user are 02-08-2011 and 20-02-2012 and …

Databases mssql sql
Member Avatar for urtrivedi
0
208
Member Avatar for ibpet11

Code Warriors, I need to set a value in my SQL database as (1 or 0 ) (true or false) so that when i click a button to insert into the database the column register 1 and when i click the button delete the column register 0. do any warrior …

Databases mssql
Member Avatar for buddylee17
0
90
Member Avatar for bilal_fazlani

I have tried this : [CODE]update customers set customers.acc_balance = (select sum (invoices.inv_amount) from customers left join invoices on customers.cust_id=invoices.cust_id group by customers.cust_id)[/CODE] this [CODE]update customers set customers.acc_balance = (select sum (invoices.inv_amount) from customers inner join invoices on customers.cust_id=invoices.cust_id group by customers.cust_id)[/CODE] error is : Subquery returned more than 1 …

Databases mssql sql
Member Avatar for bilal_fazlani
0
264
Member Avatar for vjwilson

I have run into an interesting problem. I have inherited a database for daemon process that polls and accepts reports from remote embedded systems. Each site that has one of these systems can monitor over a dozen different fuel tanks. (In practice, most monitor 2, 3 or 4 tanks.) When …

Member Avatar for BitBlt
0
243
Member Avatar for shers

Hi, I have a value which I don't know which column this belongs to in the table. So is there a way I get get those rows that contain this value using query? Thanks

Databases mssql
Member Avatar for shers
0
71
Member Avatar for gikonyo

am geting this error while testing the login panel of my website that am currently developing. Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/smartie1/public_html/checklog.php on line 43 which is in red this is the php script used for login <?php session_start(); function session_defaults() { $_SESSION['logged'] …

Databases mysql
Member Avatar for gikonyo
0
298
Member Avatar for JOSheaIV

Okay so I am completely new to creating a database, and have been trying to create one in Visual Studio 2010 I found this guide on the web and have been following it pretty successfully till I came to spot that I can't get past (here's the link - [url]http://msdn.microsoft.com/en-us/library/dd193408.aspx[/url]) …

Databases mssql visual-studio
Member Avatar for JOSheaIV
0
179
Member Avatar for super9876

Hi. I'd like to add time (and no date, and not a timestamp) data to a field in MySQL through a PHP form. I've been having problems, as the date is also included. But I only want the time (I want to be able to sort the data by the …

Databases mysql php
Member Avatar for super9876
0
168
Member Avatar for kurohige

i'm trying to get data of 30 minutes ago to now.. any idea with the query [CODE]SELECT DateDiff("n",Now(),[TimeStamp]) AS [Time] FROM RIMData_RAW GROUP BY DateDiff("n",Now(),[TimeStamp]) HAVING ((Now()>30)); [/CODE]

Databases microsoft-access
Member Avatar for adam_k
0
84
Member Avatar for bhuvan83

hi every1 i m using mysql as my back end and it runs on whole on intranet in my office. the error i m getting is Error: 1040 SQLSTATE: 08004 (ER_CON_COUNT_ERROR) mESSAGE Too many connections when users r trying to access the webpage. how can i remove the error. plz …

Databases mysql
Member Avatar for Dr AKM
0
350
Member Avatar for violette

I need to get data between year and period. 1 year have four periods. i.e; year = 2010 period = 1,2,3,4 the problem is on the period part where i could not select second period smaller from the first period. for example, i choose year=2010 to year=2011 and period=4 to …

Databases mssql
Member Avatar for violette
0
187
Member Avatar for veledrom

Hi, If any combination of these 3 (Name, Surname, DoB, Nationality) user inputs matches to database records then the query shouldn't stop to avoid duplication. If there any special function in MySQL because running 12 query wouldn't be nice for it! Thanks in advance

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

Hi, I have two tables. Payment and expense. 1. select sum(amount) from payment gives me total payment amount 2. select sum(amount) from expense gives me total expense. 3. I want to join payment and expense table. How can i subtract query1 minus query2 in one join query? Thanks.

Databases mysql
Member Avatar for MeSampath
0
101
Member Avatar for dewaal99

Hi There experts... i am hoping that someone will be able to help me with a problem... I have the following vba code.. some of you that are clued up with vba will know... it is a code i got from the net that allows me to choose dates before …

Member Avatar for adam_k
0
159
Member Avatar for ibpet11

Pals, I love this site with a passion. Again now i need to know how i can relate different tables together using SQL database with different field. Thank you for your responses.

Databases mssql
Member Avatar for sneha_07
0
152
Member Avatar for great_learner

Hi guys, I am writing some query from winforms. I am getting error with the following query: [CODE] string query = "Select [Doctor Name], Day, DateTime, Med_Sur from Doc_Pat_App where (lower([Patient Name])= '" + name + "') and (DateTime >= GetDate()))";[/CODE] I know that there is no mistake till lower() …

Databases mssql
Member Avatar for great_learner
0
203
Member Avatar for Dumb Fish

hey...i need to ask ..how to put two field in one column? let say, i have one field call Quantity for weight. Now i need to put the quantity unit which is store in other field call unit. how i concat two field in one column....?

Databases mysql
Member Avatar for Dumb Fish
0
95
Member Avatar for jacksantho

Hi, Anyone please help me out. Am having a table with field name 'status' with the values 'yes' or 'no'. Really, i wants to change this 'yes' or 'no' status automatically using mssql server. But i don't have an idea to continue on this work. for example, now the value …

Databases mssql sql
Member Avatar for jacksantho
0
1K
Member Avatar for newbie26

i need help with my database. i always backup my database everyday.. but whenever i am doing this and when the backup is ongoing, all the system which connects to this database server always encounters hanging. now, i have no choice to stop backuping the database so that the users …

Databases mysql
Member Avatar for newbie26
0
118
Member Avatar for Pragati.rch

trigger i am wrting on mysql table i have a tool in which i am calcultaing marks 140 atomic questions and now i want add 4 questions marks and assign to one major questions. how should i approach it. begin ("$value.governance and accountability") = ("$value.existence of a governing board") + …

Databases mysql php
Member Avatar for smantscheff
0
318
Member Avatar for BenCraven

Hi, I'm fairly new to php and sql, and was wondering if this question could be easily answered, I'll do my best to be as concise as possible; I have a table within a database that I'm using to return basic searches for my company to find specific products, i.e …

Databases mysql perl
Member Avatar for smantscheff
0
126
Member Avatar for Traicey

Guys I have a table with image datatype and I wana insert an image in the image field, for example [CODE=SQL]insert into dbo.Products(ProductID, ProductName, ProductPrice, ProductImage) valeus(144, '8 Gig Lenovo memory Stick', 250.00, 'Image from C:Drive or where ever the image residing')[/CODE] Thanx in advance

Databases image mssql sql
Member Avatar for yassooo
0
185

The End.