7,494 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for jamshed ahmed

[CODE] SELECT Customer_Info.CustName,Customer_Info.Address,Customer_Bank_Info.CustChequeNo,Customer_Bank_Info.CustAccountNo from Customer_Info,Customer_Bank_Info WHERE Customer_Info.AgentID=Customer_Bank_Info.AgentID [/CODE] THERE ARE TWO RECRODS ARE AVAILABLE IN Customer_Info TABLE AND TWO RECORDS ARE AVAILABLE IN Customer_Bank_Info BUT WHEN ABOVE QUERY IS EXECUTED IT SHOWS 4 RECORDS IT REPEATS THE QUERY THAT'S WHY SAME RECORDS FROM THESE TABLE ARE RETRIVED FOR TWO TIMES. …

Databases mysql
Member Avatar for jamshed ahmed
0
155
Member Avatar for end3r

Hy, I have a select like: [CODE] select case when isnull(my_table.entry,0) > 0 and my_table.edate = convert(datetime,substring('2009-09-20',1,10)) THEN COUNT(*) else 0 END as no_entries_date1 ,case when isnull(my_table.entry,0) > 0 and my_table.edate = convert(datetime,substring('2009-09-21',1,10)) THEN COUNT(*) else 0 END as no_entries_date2 ,case when isnull(my_table.entry,0) > 0 and my_table.edate = convert(datetime,substring('2009-09-22',1,10)) THEN …

Databases mssql
Member Avatar for end3r
0
98
Member Avatar for billmudry

Greetings, coders from a Canadian near Toronto. I have been working on an online botanical tree of as many woods that I can identify as I can. To be sure, the following link is absolutely not any sales or promotional gimmick. I just want to make it easier for anyone …

Databases mysql
Member Avatar for urtrivedi
0
177
Member Avatar for ItecKid

Hello, I am trying to structure query to execute MySQL fulltext search. I have creates simple table as follows: CREATE TABLE IF NOT EXISTS `entries` ( `id` int(3) NOT NULL auto_increment, `doc` text collate utf8_unicode_ci, PRIMARY KEY (`id`), FULLTEXT KEY `doc` (`doc`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=4 ; And …

Databases mysql
Member Avatar for mwasif
0
97
Member Avatar for Fredep

I am in a car club. We have a LOT of people and even more cars that they own (or have owned):icon_rolleyes:. I would like to make a database of each members car, year, make, model, body style, date purchased, date sold, member information. So...... I am stuck :$(why, of …

Databases
Member Avatar for Fredep
0
94
Member Avatar for tomer999

I just had the first session of an assessment this morning which I'll be doing over the next couple of weeks. I'm have some troubles though on deciding the architecture of the database; if anybody could provide some advice I'd be very grateful. The scenario we've been provided runs somewhere …

Databases session
Member Avatar for asaukani
0
263
Member Avatar for tyson.crouch

G'day, I've just been going over MySQL joins and just have a few small questions. 1. Are [B]LEFT[/B] and [B]RIGHT[/B] joins forms of [B]OUTER[/B] only or are the both Inner and Outer? 2. Can you only perform a [B]NATURAL[/B] join on Inner join classifications? Cheerz, TC

Databases mysql
Member Avatar for tyson.crouch
0
59
Member Avatar for paragouldgamer

This is a rookie question and don't really know how to word it so that google finds me an answer, but can someone give me an example of a query using multiple WHERE restrictions so I can see how to format my query?

Databases mysql
Member Avatar for paragouldgamer
0
59
Member Avatar for JamieY

Hello, I am working on a database design for a project that I want to attempt. Right now, I am working on just the database. I am getting a little lost on primary and foreign keys. It's been a while since I have done this. Here is my list so …

Member Avatar for JamieY
0
117
Member Avatar for jlenyi

** database table in visual foxpro ver.7 db2, fields: pid,fl1,fl2,fl3 ** database table in MS SQL database1 database1 fields: field1,field2,field3 Code in fox: SET DATE GERMAN uz1=ALLTRIM(db2.fl1) uz2=ALLTRIM(db2.fl2) uz3=ALLTRIM(db2.fl3) pMySQLstr="DRIVER=SQL Server;SERVER="path+"\SQLEXPRESS;"+"UID="+name+";PWD="+pwd+";Database="+database1" pMySQLhandle=sqlstringconnect(pMySQLstr) SQLSETPROP(pMySQLhandle, 'Transactions', 1) && Automatic transactions SQLEXEC(pMySQLhandle, "update database1 set field1=?uz1, field2=?uz2,field3=?uz3 where id=?pid") SQLDisconnect(pMySQLhandle) ** end sql …

Databases mssql sql
Member Avatar for jlenyi
0
101
Member Avatar for agongpor

Hello ... I have a very annoying problem just now, MySQL server in my office is not stable. This morning it has stopped for more than 10 times. :'( FYI, the version of MySQL is 3.23.54 running on redhad 9. When I tried to restart it, it showed like this: …

Databases client-server mysql
Member Avatar for agongpor
0
7K
Member Avatar for sdimantova

Hi, I'm developing this query for a dashboard using System Center Config Manager Dashboard. The query needs to produce a table which shows the number of computers which have Office 2007 Standard edition in one row, and the next row should show the number of computers which do not have …

Member Avatar for sdimantova
0
166
Member Avatar for griswolf

I need to keep track of the status for a person who registers for an event. This is going to be part of a tool that is administered by non-programmers. Various events will have different sets of status values, and it is possible for several events with distinct or overlapping …

Databases legal web-design
Member Avatar for pritaeas
0
160
Member Avatar for FreddieBambino

Ok, I have been searching everywhere for solutions for charset problems I have. I have php website and backend Mysql database. In some fields I need to put in letters from the Greek alphabet. If I use a form to send info to the database and type in Greek letters, …

Member Avatar for colweb
0
267
Member Avatar for bhavna_816

I have to add a not null column in a table. I am using [code]IF NOT EXISTS(SELECT * FROM information_schema.columns WHERE column_name = 'xyz' AND table_name = 'abc') BEGIN ALTER TABLE abc WITH NOCHECK ADD xyz MONEY NOT NULL END[/code] It gives me error ALTER TABLE only allows columns to …

Databases mssql sql
Member Avatar for Saranya_kamaraj
0
277
Member Avatar for tyson.crouch

Just wondering, why is it that PHP seems to be the preferred option over JSP when dealing with MySQL databases? I've long gone off PHP and have moved onto JSP in more recent times and find that it handles the over-all performance much better. I'd like to hear from all …

Databases mysql php
Member Avatar for griswolf
0
194
Member Avatar for msman88

[CODE]<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:AdNetConnectionString %>" SelectCommand="SELECT AdCampaign.ID As [ID], AdCampaign.CampaignName FROM Account INNER JOIN AdCampaign ON Account.ID = AdCampaign.AccountID WHERE (Account.EmailAddress = @EmailAddress)" DeleteCommand="DELETE FROM [AdCampaign] WHERE [ID] = @ID" > <SelectParameters> <asp:SessionParameter Name="EmailAddress" SessionField="EmailAddress" /> </SelectParameters> <DeleteParameters> <asp:Parameter Name="ID" Type="Int32" /> </DeleteParameters> </asp:SqlDataSource>[/CODE] In tge previous code. When …

Databases mssql
0
69
Member Avatar for luap599

Hi my first insert statment works ok, My problem is that I wish to insert all the selected options passed from the form. into my user_req_opt table. Some items only have 1 option others may have 10 options. [CODE] $sql = "insert into user_requests(rq_id, user_id, code_ref, code_id, cat_id, opt_yn, rq_qty, …

Databases mysql
Member Avatar for luap599
0
173
Member Avatar for js8765

Hi, I was wondering what is the "cleanest" way of combining two datasets by taking all the values from one data set and only the values from a second data set that have an index that does not appear in the first. Both data sets have the same columns. Even …

Databases mssql sql
Member Avatar for js8765
0
788
Member Avatar for end3r

Hy, I seek your help in solving the following problem: I have a select which returns columns like ( without count_same which I need to create by counting the same name): ID | NAME | no_items | count_same ----------------------------------------------------------- 1 | A | 1 | 2 2 | A | …

Databases mssql sql
Member Avatar for end3r
0
196
Member Avatar for x_mysterious_x

I have read theory about distributed database. Now i want to implement it practically but cant find any practical tutorial on distributed databases. All tutorials are theoretical. Can someone tell me how can i place two tables on two different servers and can retrieve data from them with a single …

Databases
Member Avatar for ayazkhatri003
0
80
Member Avatar for Graffixnerd

I want to calculate somebody date using his/her Date of Birth which is located on the database column name(DOB)..which sql function do i use and how do i use it on the Sqlquery..please help

Databases mysql sql
Member Avatar for griswolf
0
88
Member Avatar for qazplm114477

Which is better? I know that autoincrement fields allows you to get the last inserted id which is helpful when dealing with multiple tables, but other than that I'm not sure which I should use to make the database more secure/robust.

Databases mysql
Member Avatar for griswolf
0
267
Member Avatar for alkeshtech

Hi guys, I am creating a university database, where student can take sections and courses have prerequisites. I have to make sure that when user takes a section, he has met all the prerequisites for that course he is signing up for. And, when a course is deleted from the …

Databases mysql
Member Avatar for alkeshtech
0
94
Member Avatar for berbatov

Hi everyone I am new to this forum hopefully someone can shed some light on this vague scenario for a test to get an interview for a company. I dont know for what to do at all stuck please could someone help it would mean alot thank you: Scenario: A …

Databases
Member Avatar for Salem
0
101
Member Avatar for vallikasturi

Hi... I have two tables without primary keys and with a common field meterid... I can't add a primary key to any of these tables... Now i need to join both tables.. Can anyone write the query for this...plss... select * from table1,table2 where table1.meterid=table2.meterid; isn't working... The result of …

Databases mssql sql
Member Avatar for bhartman21
0
722
Member Avatar for megaleagues

Hello, I'm new to the forum and have a question about a database design and the resulting relationships. I'm creating a database which (amongst other things) will hold fixtures for a sports league. I have the following two important tables: [B]FIXTURES[/B] fixture_id (KEY) home_team_id (FOREIGN) away_team_id (FOREIGN) [I]etc...[/I] [B]Teams[/B] team_id …

Databases database-design
Member Avatar for megaleagues
0
88
Member Avatar for deepmadan

I am trying to access a Mysql Server through Lan using VB6 using ADODB connection db.Open "DRIVER={MySQL ODBC 5.1 Driver};DATABASE=xxxx;SERVER=192.168.1.6;USER=root;PASSWORD=xxxx;OPTION=3;" it is giving error [Mysql][ODBC 5.1 Driver]host couldn't connect to the Mysql Server My Server IP is :192.168.1.6 user is: root Firewalls are turned off.... Might be i need to …

Databases mysql
Member Avatar for AndreRet
0
2K
Member Avatar for ds2r

Hi guys, mysql noob here. :) So here's my problem. I have 2 tables, Order(order_id,product_id) and Product(product_id,product_name). For one order, I can have many products. So my question is how can I auto increment order_id? When I insert multiple products in the order table, it generates an order_id for each …

Databases mysql
Member Avatar for ds2r
0
134
Member Avatar for Aussie_Here

Hi I've been trying to solve the following problem for a few days but everytime I get the error msg even when the entered value doesn't conflict with the statement. Plz I need an urgent help I have the following tables: [B]booking[/B] bookingId (PK) subjectId (FK) [B]Subject[/B] subjectId (PK) termId …

Databases mssql sql
Member Avatar for Aussie_Here
0
104
Member Avatar for InfoMan4ever

[B]Hello everybody, hello Dani:icon_cool:![/B] I'm doing my homework of 'Data Base', exactly in the chapter: Relational Algebra, here I am, I can't find a specific relation (or the SQL corresponding query) :icon_confused:! Here the schema: [COLOR="Green"]MEAL(guest,date); MENU(dish,date); PREFERENCE(person,dish);[/COLOR] I wanna find the SQL query (or the relation in Relational Algebra):[COLOR="Green"]"the …

Databases sql
Member Avatar for pclfw
0
90
Member Avatar for manoncloud9

Hi everyone, I've been charged with creating a complex database that includes all kinds of entities with common data elements including customers, users, vendors, shops, organizations, etc.. I've worked on databases with separate tables for each primary entity like (customer table, lead table, vendor table, user table, organization table). My …

Databases database-design
Member Avatar for pclfw
0
107
Member Avatar for zerioni

Okay, fairly straightforward mysql insert from a form, the insert works fine but i wanted to have it check for duplicates first and kick out an error if the name already existed in the table. That said, I worked out a few errors in the jsp, and have it down …

Databases java-jsp mysql session
Member Avatar for zerioni
0
6K
Member Avatar for immortalvegan

I'd like to start using databases with my websites. I use PayPal shopping cart now and want to automate adding sales items for my customers product. It seems like PHP/MySQL is the easy answer. Am I right? I don't really want to build a whole cart just most of a …

Databases mysql php
Member Avatar for drjohn
0
130
Member Avatar for dB09

hello. i have a database with school names, their budgets and their expenses. i have to write trigger not allowing to increase expenses, but only to lower their value. if someone wants to increase it, there should be message. i know i have to remember somehow the old value and …

Databases mssql
0
64
Member Avatar for MarcusMaximus

Hi I have a database with many staff members and each staff member has many Customers assigned to them. I want to export customer details to a separate excel file for each staff member. I don't want to have to do this manually as its going to take up time. …

Databases microsoft-access
Member Avatar for MarcusMaximus
0
126
Member Avatar for Abemanden

Hi, i've tried several times, but haven't succed in making this: Classroom2 Name: | Date: Oliver | 12-10-10 Homer | 12-10-10 [COLOR="red"]Peter | 11-11-10[/COLOR] Classroom1 Name: | Date: James | 20-10-10 Lars | 20-10-10 [COLOR="red"]John | 11-11-10[/COLOR] How do i make a SQL statement that ONLY selects the lastest dates …

Databases mssql sql
Member Avatar for Abemanden
0
147
Member Avatar for whizkidash

Hi team, 1)There are 2 independent AIX platform available with 10g database running on it Mainly-Production and the other test machine 2)There is 2 tables which needs to be brought down from production to test machine I know expdp/impdp plays the key<commands as below-correct me if the below command needs …

Databases oracle
Member Avatar for debasisdas
0
279
Member Avatar for tyson.crouch

I'm sitting my CMA next week, and am rather embarrassed that i have to ask this. i have some java code, that i'm looking to clean up. and in it is my SQL queries. I've tried running joins on my tables but none quite get the effect that i've achieved …

Databases mysql
Member Avatar for pritaeas
0
127
Member Avatar for jesikatt04

I am trying to create a plan for users based on their top 3 choices. I want to display results all together on a results page. I have database populated and form (check boxes) created. I cannot seem to put the two together. I want them to choose 3 choices …

Databases mysql
Member Avatar for tyson.crouch
0
101
Member Avatar for missbusiness

hi, im trying to divide two fields in a database like this: crterm=bal/pi but im not sure how to write it in sql. any suggestions?

Databases mssql
Member Avatar for Brian Swan
0
102
Member Avatar for Obelisk4

Hey all ! I want to create a new data-type called 'Phone' so that I can use it when create a new Attribute, with its form is : xxx-xxx-xxxx For example : 123-543-8978 And when users want to UPDATE my table, they must enter a string with the same form …

Databases oracle sql
Member Avatar for Obelisk4
0
194
Member Avatar for balam

Safari can’t open the page because the server unexpectedly dropped the connection. This sometimes occurs when the server is busy. Wait for a few minutes, and then try again. When I try to post the form with Firefox i just get a black page. This problems started when i changed …

Databases mysql
Member Avatar for balam
0
218
Member Avatar for silviud

hi, i have the following table: +------------------+-------------+------+-----+---------+----------------+ | Field | Type | Null | Key | Default | Extra | +------------------+-------------+------+-----+---------+----------------+ | IpAddressesID | int(11) | NO | PRI | NULL | auto_increment | | PhysicalServerID | int(11) | NO | | NULL | | | VmID | int(11) | …

Databases mysql
Member Avatar for silviud
0
120
Member Avatar for Gibson_Junk

Hi i just did some codoing and heres the error i get when i try to use my register forum [code] Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/rpimager/public_html/RPImager/register.php on line 32 Account created. [/code] Here's the docs that i use it for. why i …

Databases mysql
Member Avatar for vbeazer
0
383
Member Avatar for SREENIVAS_DANDA
Member Avatar for idcj
0
64
Member Avatar for andross52

I was looking to make a VERY simple PHP/MySQL loginish username site, as an exercise, when I came across the problem of storing info on the users. I am very new at this (hence the need for an exercise), so I was wondering if anyone could direct in the right …

Databases mysql
Member Avatar for drjohn
0
88
Member Avatar for markcaldwell

I have created a table named "MapDetail" : the FIELDS identify the formname, the name of the textbox , and data to be transferred to that textbox. My form contains a map of city lots. Each of these lots contain a Textbox. My objective is to load each Textbox with …

Databases microsoft-access
Member Avatar for markcaldwell
0
203
Member Avatar for katties

Hi is it possible to count days between columns, something like [CODE]datediff(date_finished-date_started) as 'days'[/CODE] only datediff works just with actual dates, and I'd like to have the days number for every row counted automatically with the rsults in a new temporary column'days'; I hope it makes sense. Please could you …

Databases mysql
Member Avatar for katties
0
96
Member Avatar for dmw

I have an issue. Database design is not at all my forte' but I am being fasked by my boss to learn how, asap. My boss owns 15 small business's, everything from a small weekly Newspaper to an Electrical Service to a Marina. We really dont have any real database …

Member Avatar for markcaldwell
0
198

The End.