7,494 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for andywyndom

I am wondering if anyone wants to try and better this code sample. Here is the request: Given a range of dates (start, end) return all rows that cross that range where the rows contain a start and end date. This appears to work. I just wonder if anyone else …

Databases mssql
Member Avatar for andywyndom
0
199
Member Avatar for agriz

Hi There are two tables. Cities and Countries Countries have Id, Country name and Short Code (Id is primary key) Cities have Country_Short_Code, City and Populations. (city is indexed) There are 5000 records maximum to be processed. PHP will give 5000 city name and its country. What is the best …

Databases mysql
Member Avatar for agriz
0
192
Member Avatar for mostafa-sky

hi there i have problem with my MS SQL server some one execute unwanted update statement on huge table and make loss for my data i fix it by using available backup but, i need to know who,can i do it if there are some logs for sql statement please …

Databases mssql sql
Member Avatar for mostafa-sky
0
226
Member Avatar for evilguyme

Hey guys.. i need some help.. lets say i have a table and i have a column called 'brand'. Then for each record, for brand name i put say Nokia, Apple etc. i want it so that i can create a php page that displays records with only brand = …

Databases apple mysql
Member Avatar for evilguyme
0
85
Member Avatar for amityadav9314

I have two table named:[B] Blog[/B] for displaying blogs post and [B]comments[/B] for displaying comments section for each blog post. The fields for these are as follows: [B]For Blog:[/B] 1: blog_id 2: title 3: body 4: author 5: updated [B]For Comments:[/B] 1: comments_id 2: username 3: email 4: comment_body 5: …

Databases cms mysql
Member Avatar for SANJAY26
0
355
Member Avatar for filipgothic

I want to make option to approve users before they can login or to ban them, here is code [CODE]<HTML><HEAD><TITLE>Fakultet informacionih tehnologija</TITLE> </HEAD> <BODY TEXT="#ffffff" BACKGROUND="fakultet/Assets/bg.jpg" LINK="#FFFF00" VLINK="#CDCD00" BGCOLOR="#000000"> <CENTER><TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH="700"> <CENTER> <FONT SIZE=+4 FACE="arial,helvetica"> Fakultet informacionih tehnologija <HR> </CENTER> <?php session_start(); // dBase file include "dbConfig.php"; …

Databases mysql session sql
Member Avatar for LOVE_outofLIGHT
0
318
Member Avatar for riahc3

Hey Im going to use some federated tables that I need but I know that the engine does not support foreign keys. Im thinking of alternatives and this is the one so far: Tables from the remote side and related related with a foreign key on the local side. Its …

Databases mysql
Member Avatar for riahc3
0
877
Member Avatar for Mahesha999

Hi I just installed Oracle 11g R2 on my Win 7 Ultimate x86 machine in compatibility mode (XP SP3). It showed that the setup completed successfully (without a single error & warning, I got few when I ran it in Win 7 without compatibility mode enabled.). Now I am trying …

Databases oracle
Member Avatar for ryanjayson
0
1K
Member Avatar for missaaliyah

I have very limited use of using MySql - but I am trying to fix this code and it seems to be corrent. But I am still getting the error. The website is a web directory, and the code itself checks to see the websites that arent linking back to …

Databases mysql
Member Avatar for rigo1211
0
283
Member Avatar for HB25

Hi I am using the fallowing code to give some information back to the user after running some queries. The information will be displayed in row only. [Code] $result1 = mysql_query("SELECT * FROM bookings WHERE bookingID='$last_insert_booking_id'"); echo "<table border='1'> <tr> <th>ID</th> <th>Firstname</th> <th>Lastname</th> <th>address1</th> <th>address2</th> <th>town</th> <th>postcode</th> <th>telephone</th> <th>email</th> <th>Arrival</th> …

Databases display mysql php
Member Avatar for minilik
0
3K
Member Avatar for riahc3

Hello Using MySQL, I have DB 1 with table T1 on Server 1 and DB 2 with table T1 on Server 2. Not on the same network and T1 contain the same columns with the same datatypes. I want to create a trigger on DB 1 so when there is …

Databases client-server mysql
Member Avatar for riahc3
0
3K
Member Avatar for FridgeFreezer

Hey guys, I'm new to writing SQL and I need a bit of help. What I'm trying to achieve is getting my Java application to successfully send the high score of a specific user to a database. I'm not sure how I would write the SQL code so it will …

Databases mysql
Member Avatar for FridgeFreezer
0
125
Member Avatar for mr. y

I have a table where there is about 1 milliard record. when my website is on high traffic, there is more than 100 requests/second on this table. so request respond time is between 2-4 seconds, which leave a bad impression. is there any suggestion how to minimize the request respond …

Databases mysql php
Member Avatar for smantscheff
0
161
Member Avatar for hatebin

Hi, I'm having a data base which looks like this patient(pk_id)--(fk_pat)appointment(fk_doc)--(pk_id)doctor(fk_spe)---(pk_id)specialty The goal is to select all the patients which had an appointment with a doctor with 'dentist' speciality. I made 2 requests, one is correct and the other is incorrect correct one: [CODE] select distinct patient.name from pataient, appointment, …

Databases oracle sql
Member Avatar for hfx642
0
202
Member Avatar for davBro

Hi Guys, Can someone help me. I am using FCK Editor when I add a new news article to my website. When entering each new article, I have included an option where there is a drop-down list to select a particular news category. In the front-end of the website the …

Databases mysql
Member Avatar for davBro
0
299
Member Avatar for mabelis

Hi all, i encounter a big problem weher I thought it would be simple; I very much hope someone here can help me a bit. I have a database (in sql-server) with, among other data, records for a few thousand clients, subscribers etc. One of the items retained for each …

Databases client-server email
Member Avatar for fubofo
0
190
Member Avatar for MARKAND911

I am having a table named "Society" And 5 master tables "BlockA","BlockB","BlockC","BlockD","BlockE". The "Society" table contains the foreign key columns of all the 5 master tables. Now when i write the select query it takes a lot of time to execute, as 5 tables are referencing one table and joining …

Databases mssql sql
Member Avatar for BitBlt
0
146
Member Avatar for edpfister

So I've looked for an answer to this question on the web but couldn't find anything that covers this specifically. Our database stores the project version in the format #.#.# (Rev_#) so there is both text and numbers in the string. I have no control over the data so I …

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

how to increase my mysql databse server partitioned in /var/lib/mysql using putty?? my server is linux open suse. can i have a step by step procedure??thnks.

Databases mysql storage suse
Member Avatar for smantscheff
0
215
Member Avatar for gennesis

Hi a have 4 tables Table A ID | Data 1 --------------- 1 | A Table B ID | Data 2 ----------------- 1 | B 1 | C Table C ID | Data 3 ---------------- 1 | D 1 | E 1 | F Table D ID | Data 4 …

Databases mssql
Member Avatar for gennesis
0
367
Member Avatar for jovillanuev

Guys, Need your help. i need to obtain the nearest date from 3 tables. attached my scripst. th problem with this scripts it creates double entry in receipt date with the same transaction specially for this ESN "268435459407885398". [CODE] SELECT p.ESN, p.ReturnDate, s.Receiptdate, e.Shipdate FROM #Product p with (nolock) CROSS …

Databases data-structure mssql
Member Avatar for jovillanuev
0
158
Member Avatar for moneypro

Good Morning, I need some example with SQL plus code on various SET operation. But the query have to be with SELECT keyword. For example I am giving a code: [CODE]Create table student (s_id number(4), sname varchar2(10),constraint pk_sid primary key (s_id),blood_gp varchar2(4)); create table location(l_id number(4),location varchar2(20),constraint pk_lid primary key(l_id)); …

Databases oracle sql
Member Avatar for ChrisPadgham
0
214
Member Avatar for ZahidAliGul

Dear all, I want to create a page on which I want to display the Number of kits issued, total women visited monthly wise, How much cases are registered total, how much are close due to delivery/migration/miscarriage/abortion/Fake Data. Can any one help me???

Databases microsoft-access
Member Avatar for ChrisPadgham
0
139
Member Avatar for ryan311
Member Avatar for RE:MATIN
0
868
Member Avatar for apanimesh061

How should I use SQL loader to load a .csv file as an Oracle Database ? [CODE] CREATE TABLE products( ProductID INTEGER NOT NULL, ProductName CHAR(30) NOT NULL, SupplierID INTEGER, CategoryID INTEGER, QuantityPerUnit CHAR(30) NOT NULL, UnitPrice INTEGER NOT NULL, UnitsInStock INTEGER NOT NULL, UnitsOnOrder INTEGER NOT NULL, ReorderLevel INTEGER …

Databases oracle
Member Avatar for apanimesh061
0
949
Member Avatar for john_beginner

hello all My question is, At, the server side i m using 10 G and at the client side i m using 9i when i use export utility then it create the dump file but when i try to import it then my command prompt doesnt show any progress of …

Databases client-server oracle
Member Avatar for debasisdas
0
136
Member Avatar for maydhyam

Hello All, I have a sorta unusual problem (not too sure where to post it either), it goes like this: I am currently using MS Visio 2007 to Reverse Engineer some tables in an Oracle database, MS Visio lists the tables using unprintable characters (lots of little squares). Because of …

Databases oracle
Member Avatar for debasisdas
0
116
Member Avatar for michaelzip

Hi, I am having trouble with retrieving records on my database. My layout was this.. [CODE]UsersList Username Firstname LastName Role Records TheUser ApprovedBy DateApproved [/CODE] The first text are the table names while the indented once are the field names. I have a table named Records. TheUser and ApprovedBy was …

Databases mssql sql
Member Avatar for michaelzip
0
232
Member Avatar for danielbala

hi... im doing project for a school...and new to php and mysql..just learning.. i have to create one loginpage with 3 different users like corres,principal and the staff in the table field what type i have to give like ENUM or SET.. i want to assign 0 for corr,1 for …

Databases mysql
Member Avatar for danielbala
0
162
Member Avatar for dwayned

Hi Guys, I have imported a CSV file into the database and i want to write some functions to ensure that when data is loaded in that all spaces are removed from certain columns. For Example: In the Phone No column the numbers can appear as follows 07712345678 077 1234 …

Databases oracle sql
Member Avatar for dwayned
0
169
Member Avatar for gennesis

Hi a have 4 tables [ICODE]Table A ID | Data 1 --------------- 1 | A 2 | W [/ICODE] [ICODE]Table B ID | Data 2 ----------------- 1 | B 1 | C 2 | X [/ICODE] [ICODE]Table C ID | Data 3 ---------------- 1 | D 1 | E 1 …

Databases mysql
Member Avatar for Ezzaral
0
316
Member Avatar for bettybarnes

Hi i'm a newbie in pl/sql and i need some help from the experts. I'm a vb programmer. Just want to ask you how do you do this in pl/sql? If I log in on my account my username should appear in a textbox. From this LoginForm I have 2 …

Databases oracle sql
Member Avatar for hfx642
0
253
Member Avatar for newbie26

please help me!!! im restarting the mysql server from putty: Empty pid file /var/lib/mysql/mysqld.pid for /usr/sbin/mysqld when i checked mysql status, unused running unused running what's the problem?? im using putty in configuring mysql server thanks in advance.

Databases mysql
Member Avatar for Ezzaral
0
84
Member Avatar for visweswaran28

Hi, I want to convert Single Column values to Row. Table Original Content: Code Amount Expenditure 10027 5000.00 LOCAL CONVEYANCE 10027 320.00 LOCAL CONVEYANCE 10116 1589.00 TRAVEL EXPENSES 10095 350.00 LOCAL CONVEYANCE 10095 1215.00 TRAVEL EXPENSES Expected Output : Code LC TE 10027 5000.00 NULL 10027 320.00 NULL 10116 NULL …

Databases mssql
Member Avatar for BitBlt
0
187
Member Avatar for M.Waqas Aslam

Hello Every one ! i am trying to make query to show the growth of sale of the product month wise ,i have one table name Sales .having following fields , SalesID,ProductID,amt,Qty,SalesDate i use this query to show my records [CODE] select ProductID,Amt,Qty,substring (datename(month,SalesDate ),1,3)as months,DATENAME(YEAR,salesdate ) as years [/CODE] …

Databases mssql
Member Avatar for M.Waqas Aslam
0
139
Member Avatar for CSharpUser

Hi, I am trying to use the PIVOT function in SQL Server 2008. I have a query that I think should work, but whenever I execute it, I get the errors: Msg 265, Level 16, State 1, Line 25 The column name "CompleteTime" specified in the PIVOT operator conflicts with …

Databases mssql sql
Member Avatar for BitBlt
0
467
Member Avatar for danielbala

Hi all........... I shud just how to use ENUM type in mysql..like shud i give any field in form in a website and how to assign a values for eg 0 for admin,1 for manager and 2 for the staff using phpmyadmin?? please help me.................

Databases mysql
Member Avatar for smantscheff
0
104
Member Avatar for rotten69

Hi everyone, I had this problem with phpMyAdmin and successfully fixed it. Then, after some days, I encountered the access problem with the WAMP server. I haven't changed anything yet. Or maybe, I need to set up the environment variables? The message I'm getting is that [QUOTE]Forbidden You don't have …

Databases mysql
Member Avatar for rotten69
0
166
Member Avatar for nokomoli

Hi Guys , i have faced a sql command problem. That is currently i have 2 different table [ICODE]a) Select ID, Name from Table1 where ID >=1 and ID ID <=3 ID | Name 1 | Alan 2 | Amy 3 | Andrew [/ICODE] [ICODE]b) Select ID,Sum(Points) as [Total] from …

Databases mssql
Member Avatar for gennesis
0
205
Member Avatar for cyberdaemon

i want to create a stored procedure that can return the initial character of two string inside the description field. ex. Computer Security -> in one data only if i use this statement select left(description) from table1 i want to return only CS when i run my script. is there …

Databases mssql
Member Avatar for cyberdaemon
0
127
Member Avatar for abathurst

I have a form where a user can search for properties from a database. Everything is working except for the suburb search. I would like the user to be able to search for more then one suburb. At the moment I have the information from the textbox being separated into …

Databases mssql seo sql
Member Avatar for adam_k
0
132
Member Avatar for M.Waqas Aslam

Hello Every One ! I m working on a software , i have one field name expiry_Date , now i want to make an query which subtract the current date from the expiry_date and give answer in no.of days , i use getdate() for current date , can any one …

Databases mssql
Member Avatar for M.Waqas Aslam
0
207
Member Avatar for creativeartbd

Hi, I'm new in php and face some problem in mysql. I want to check some data if it's remain on database. Example: in my form there are two form field. 1) url 2) name. So i want to check if session user have already this 'url' and 'name' in …

Databases mysql php session
Member Avatar for debasisdas
0
121
Member Avatar for apanimesh061

[CODE] CREATE TABLE Query3Ans( dname char(20) ); CREATE VIEW deptNonPhDs(dept, numNonPhDs) AS SELECT dcode AS dept, count(*) AS numNonPhDs FROM instructor WHERE idegree != 'PhD' GROUP BY dcode; INSERT INTO Query3Ans( SELECT d.dname FROM deptNonPhDs dp1, department d WHERE dp1.numNonPhDs >= (select max(dp2.numNonPhDs) FROM deptNonPhDs dp2) AND dp1.dept=d.dcode ); select …

Databases oracle session sql
Member Avatar for hfx642
0
137
Member Avatar for teedoff

Just curious, and well hoping to save myself months of time..lol I've seen databases online already set up to purchase. I know a little about databases...very little, and could probably wing my way through creating a database for car lighting applications for the last 100 years, but thought there might …

Databases mysql
Member Avatar for rch1231
0
2K
Member Avatar for kyklops

Hi everyone! I'm currently designing a database for an inspection body that performs controls and inspections of wiring systems. The price for the inspection depends on the power of the wiring. I'm experiencing some problem in the design of the price list for the DB. The actual price list has …

Databases database-design
Member Avatar for ChrisPadgham
0
214
Member Avatar for divsok

create table Course ( courseId char(5), subjectId char(4) not null, courseNumber integer, title varchar(50) not null, numOfCredits integer, primary key (courseId) ); create table Student ( ssn char(9), firstName varchar(25), mi char(1), lastName varchar(25), birthDate date, street varchar(25), phone char(11), zipCode char(5), deptId char(4), primary key (ssn) ); create table …

Databases mysql
Member Avatar for StephNicolaou
0
123
Member Avatar for geoamins2

i have four computers connected to broadband ADSL router MS SQL Server is installed in all computers while i have done steps given here [url]http://support.microsoft.com/kb/914277[/url] it had worked on local networking some time ago but now its not accessing remotely. i m confused its just because of broadband ADSL. if …

Databases client-server mssql sql
Member Avatar for geoamins2
0
324
Member Avatar for swebdizajn

I have a problem at login to the site: Constantly message appears: Deprecated: Function mysql_db_query() is deprecated in /home/vebsajt/public_html/hosting/config/functions.php on line 53 Deprecated: mysql_db_query() [function.mysql-db-query]: This function is deprecated; use mysql_query() instead in /home/vebsajt/public_html/hosting/config/functions.php on line 53 the file in line 53 functions is: $check_login = mysql_db_query($db, "SELECT * FROM …

Databases mysql session
Member Avatar for hericles
0
969
Member Avatar for kiranshrewstha

Hi everyone, I am very new in this forum as well as in Data base management. Currently started my degree and studying database management system. I need serious help. My 1 assignment was already failed so if I fail this one too then I have to repeat whole subject. Please …

Databases database-design
Member Avatar for ChrisPadgham
0
236

The End.