2,403 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for jon.kiparsky

So, I'm a tech writer, not a database guy, but I've been asked to develop documentation for my company's databases. This means I have some questions. It seems obvious to me that there must be some SQL documentation tools out there, but I have no idea what is used for …

Member Avatar for jon.kiparsky
0
95
Member Avatar for turt2live

Hello, I have a query that needs to perform the following: where verified=1 AND where name is like '%$term%' AND/OR owner is like '%$term%' I have a basic knowledge of SQL and was wondering if the above is possible. I need the and/or because i would like it to return …

Databases mysql
Member Avatar for hielo
0
118
Member Avatar for anirban1087

Hi, I am working on a Inventory & Billing Management System. I am having some problem with the design of some tables. The problems are as follows 1. I have a product table. Where I am storing the product details, but the problem is that each product have an unique …

Databases database-design
Member Avatar for jbisono
0
929
Member Avatar for NinjaLink

Is there a way to create a program to rewrite a query in an optimal form. If so, how? What can I do to implement this. Rewrite SELECT EMPOYEE.EMPNO, POSITION FROM EMPLOYEE E, JOBHISTORY J WHERE E.EMPNO = J.EMPNO AND STARTDATE <= ENDDATE AND SALARY <= 3000 into SELECT EMPLOYEE.EMPNO, …

Databases mysql
Member Avatar for crishjeny
0
112
Member Avatar for gruffy321

HI all, am fairly new here stil and hope to give back as much as i take , in time , experience and wisdom... (the wisdom bit is probably way off for now) I have a set of tables , but one table needs to show the information chosen in …

Member Avatar for gruffy321
0
187
Member Avatar for carvalha

hi one simple question please. I have three tables. [CODE]GROUP id area 1 Multimedia 4 Education Employment id foreign key(GROUP) job 1 1 designer 2 4 professor 3 1 copy and now suppose that i have this SpecificProperties id foreign key (Employment) properties 1 1 type of contract 2 1 …

Member Avatar for BitBlt
0
133
Member Avatar for Josef01

I would like to know how to a use a text box in winform to name the table . can anybody help me please I am using the following statement to create table SQL = "CREATE TABLE tbCatalogue ([Id] COUNTER, [Stock Code] TEXT(10), [Account Number] TEXT(6))"

Databases mysql
Member Avatar for Josef01
0
381
Member Avatar for labhijitp

I have these two queries which i want to run together and not one by one. How can i do that? Or can it be modified to be one query. [CODE] UPDATE runquery.table1, runquery.table2 SET runquery.table1.`Column1` = (runquery.table2.`Col1`/runquery.table2.`Col2`*100) Where runquery.table2.`itemid` = 3 and runquery.table1.`Userids` = runquery.table2.`userid`; UPDATE runquery.table1, runquery.table2 SET …

Databases mysql
Member Avatar for labhijitp
0
223
Member Avatar for turt2live

Hello, What I am making is a block of code where it "balances" the load for support tickets on a website. I know that my setup may (most likely will) not be the best. I'm looking for working, not a lecture on how to do everything and have it all …

Databases mysql
Member Avatar for turt2live
0
175
Member Avatar for Behseini

Hi Guys I am new at oracle(SQLPlus ,as well) I am trying to run a sql file which contains more than 500 alter statement which is suppose to alter all of my tables.After running the @alterTab.sql in sqlplus the result display at cmd command but I can's navigate to previous …

Databases oracle
Member Avatar for hfx642
0
289
Member Avatar for lovell_82

Hi all, was wondering if I could get some help with my code. I want to be able to insert a person and details into a database, however i keep getting a syntax error, and not very experienced so was hoping some one here could help. thanks dbConfig.php [code=php]<?php // …

Databases mysql
Member Avatar for lovell_82
0
144
Member Avatar for stevija

Hello, I've got a problem with simultaneous placement of an order in a webshop. I will start off with a general description of the problem, and provide details after that. **The problem** Orders are stored in the table 'orders'. Each order has a BillNumber, which is obtained via a mysql …

Databases multithreading mysql
Member Avatar for stevija
0
226
Member Avatar for rohanvispute

Can anyone tell me what is the difference between case and decode. and which one is more beneficial

Databases oracle
Member Avatar for hfx642
0
105
Member Avatar for jlego

we have a mysql server running from mac os x. i dont like mac but the server has been here forever. a client machine received the 'too m any connections to server' error. my colleague restarted the mysql server - and now the mysql server service will not start. does …

Member Avatar for jlego
0
225
Member Avatar for isumasama

hi all, i have created a crosstab query and one of the row heading contains a hyperlink field. my problem is that the field is not working, and on top of that it gives corrupted values too. pls help thanks

Member Avatar for isumasama
0
186
Member Avatar for isumasama

hi all, i need to do a record search in a form where its Record Source is Operation, but instead of searching the Operation, i need to search different table, say Remark.. i supposed the red highlighted code should be the place to set the Remark table, but how to …

Databases microsoft-access
Member Avatar for isumasama
0
150
Member Avatar for 54uydf

I want to make a query that would return data about students who failed in a specific course, the report is looking like this- studId, studName, last grade, year last course was taken, num of fails in this course. so I'm having problems writing the correct SQL query to get …

Databases mysql sql
Member Avatar for 54uydf
0
231
Member Avatar for sumprit

Hi, i am still stuck in SQL query about how to retrieve data from two tables. I have two database tables- Forecast [CODE=text]------------------------------------------------------------------- TimeStamp | Temperature | Rainfall | Wind | City_Code ---------------------|-------------|---------|-------|------------- 2011-03-13 10:00:00 |22.2 (degC) | 0 | 7 | 1 2011-03-13 11:00:00 |23.1 (degC) | 0 | …

Databases mysql
Member Avatar for debasisdas
0
176
Member Avatar for klemme

Is this a correctly made JOIN: [CODE] // Build SUBJECT navigation and gather SUBJECT data here-------------------------------- $sqlCommand = "SELECT id, linklabel, pos FROM subjects INNER JOIN pages on id = pages.subjectid ORDER BY pos ASC"; $query = mysqli_query($myConnection, $sqlCommand) or die (mysqli_error()); [/CODE] ? Klemme

Databases mysql
Member Avatar for klemme
0
60
Member Avatar for anish99virgo

[CODE]I am having two tables in MS SQL SERVER 2005 in master database. 1st table is Country & 2nd is City. [COLOR="Red"][B][U]I want to know the command for Copying a Column(with values) for eg say Name from City Table to Country Table. Column is not empty, its having values(data entries). …

Databases mssql
Member Avatar for kplcjl
0
188
Member Avatar for klemme

Hey All, I have tried to work on a way to update all the date in a row called: "position", from a table called: "pages". The admin have a choise on where to place his new page, in the cms. The pages/links, are being pulled from the database by position …

Databases cms mysql
Member Avatar for smantscheff
0
114
Member Avatar for bklynman01

Hello, I'm trying to sort a training table in order of the sequence of tasks. These tasks are numbered 1.1.1 1.1.2 1.1.3 ...... 1.1.10 1.1.11 When the query sorts this and displays it, it comes up: 1.1.1 1.1.10 1.1.11 1.1.2 .... Is there a way to get them to come …

Databases mssql
Member Avatar for bklynman01
0
126
Member Avatar for gulbano

Hey all, Can anybody tell me what is a stored procedure an what is the difference between a stored procedure and trigger? Thanks In Advance

Databases mysql
Member Avatar for gulbano
0
94
Member Avatar for sas1ni69

Hi guys, I'm trying to build a query that involves two tables, the course table and the studentsLink table. The StudentsLink table describes the link between students and the course. The tables are as below; Course courseID(bigint) - PK courseName (varchar) courseInstructor (varchar) StudentsLink courseID(bigint) - PK StudentID(bigint) - PK …

Databases mysql sql
Member Avatar for sas1ni69
0
124
Member Avatar for isumasama

hi how to do insert ignore in access? is access support this function? [CODE] CurrentDb.Execute "INSERT IGNORE INTO FullDB (IDProc, IDOp, IDTech) VALUES (" & IDProct & "," & IDOpt & "," & IDTecht & ")" [/CODE] or how can i do a search for duplicate record first before insert? …

Databases microsoft-access
Member Avatar for isumasama
0
1K
Member Avatar for isumasama

hi all, How to check if a particular row is exist before inserting it? my table has ID as Primary key, and 2 other columns, say Process and technology.. thank you

Databases microsoft-access
Member Avatar for isumasama
0
94
Member Avatar for klemme

Hi, I my admin area, where the administrator can create a new page, it is also possible to decide the position of the link. It is a menu in the left side of the screen, one link on top of the other, very simple nav. I have a dropdown list …

Databases mysql
Member Avatar for smantscheff
0
178
Member Avatar for McLaren

Hi, I have one question: I am programming with PHP, CodeIgniter. But it may suit for other tools as well. I need to delete something from the table and I want to be sure that there will be deleted row from another table. In short - delete to rows, each …

Databases php-codeigniter
Member Avatar for McLaren
0
443
Member Avatar for 54uydf

I have 2 places I'm stuck on with my DB design.. 1************************************************************************** how to translate ERD that looks like this into real tables? [URL="http://schemabank.com/sites/default/files/images/notation_self_relationship.gif"]http://schemabank.com/sites/default/files/images/notation_self_relationship.gif[/URL] my entity is "Course", if before student wants to take some course he must take few pre-courses then how should I model this? tableCourse- [U]id[/U], name …

Databases
Member Avatar for 54uydf
0
192
Member Avatar for konczuras

Hello Everybody! I have the following problem: I want to make an application, which need tables to show, edit, etc. You would be able to select the table, which you want to work on, by a dropdownlist (the whole project is in ASP.NET). I want to load the selected table's …

Databases asp.net mssql
Member Avatar for vectorsoftware
0
187
Member Avatar for gulbano

Hey all, Is there any way to check the time of insertion of a record. Means if i inserted a record in table on 03/21/2011 14:05:45 00:00 then is there any way to get this time after-wards

Databases mysql
Member Avatar for debasisdas
0
117
Member Avatar for abelLazm

Hi, I have a table on two different database servers on server-1 it contains almost 2090 records and on server-2 it is empty i want to copy all the records from server-1 to server-2 both the database servers are identical but on different location and have no relation with each …

Databases mysql
Member Avatar for abelLazm
0
133
Member Avatar for gulbano

Hey All, Can any one tell me how two remove duplicate records from a table?

Databases mysql
Member Avatar for debasisdas
0
78
Member Avatar for Behseini

Hi Guys Could you please let me know what SQL query I can run to get the parent of a specified table? I already used this code which is providing a list of child tables [CODE] SELECT object_name(parent_object_id)As 'Childs List' FROM sys.foreign_keys WHERE object_name(referenced_object_id) ='Stores' [/CODE] How can I run …

Databases mssql
Member Avatar for Behseini
0
2K
Member Avatar for klemme

Hi All! I have made a small cms using php and mysql - I havent tried to export a databae to a webserver before, so I need a little help/confirmation. When I click export in phpmyadmin, and chooses type to be SQL, and saves it with the allready chosen/marked boxes, …

Databases cms mysql
Member Avatar for debasisdas
0
134
Member Avatar for Mike Bishop

afternoon everyone, I am new to using MSSQL and need help with SUBSTRING function. i have a strings like below s2-Total Solids - Std Method V1E-RVT4/2.5@20degC Initial V1Y-LVT2/60@20deg Initial A2-Alkalinity - ISO Method(%) I would like to only get the data before the first "-" IE s2 V1E V1Y A2 …

Databases mssql
Member Avatar for Mike Bishop
0
135
Member Avatar for BrianDickson

I am having great difficulty getting a query to work with multiple conditions. I have a very basic understanding, hence the two queries below (one commented out). I understand a smaller and more precise query would be returned by using INNER JOIN. Both queries work fine until I try to …

Databases mysql
Member Avatar for smantscheff
0
170
Member Avatar for gulbano

Hey all, I am new in SQL my problem is that I have to select one by one to perform certain function can any one tell me how to loop through the records of a table. I have googled it a lot but still not able to sort out this …

Databases mysql sql
Member Avatar for gulbano
0
109
Member Avatar for Mike Bishop

i have a very simple S/P called ClaimTotal [CODE]CREATE PROCEDURE ClaimTotal @Result varchar(50) OUTPUT as select sum(total) as Ctotal from claim[/CODE] i am struggling to get the Ctotal saved into the @result so that i can then pull this into my .net program. if anyone could help that would be …

Databases mysql sql vb.net
Member Avatar for Mike Bishop
0
112
Member Avatar for Silent-Regret

Okay, I have a table called InGameTime with the following columns: CharName varchar(30) InTime datetime OutTime datetime HH int MM int SS int I am trying to make a trigger, that will once data is updated, it will update the HH,MM,SS to add the total hours, minutes, seconds spent in …

Databases mssql
Member Avatar for Silent-Regret
0
239
Member Avatar for Derice

Column A (datetime) ----------------------- 2011-04-01 00:00:00.000 2011-04-01 00:00:00.000 2011-04-09 00:00:00.000 2011-04-01 00:00:00.000 2011-03-31 00:00:00.000 Column B (datetime) ----------------------- 2011-03-25 15:45:56.457 2011-03-25 15:52:37.933 2011-03-25 15:54:37.197 2011-03-25 16:05:30.023 2011-03-27 00:43:23.713 When i try to query the above record [CODE] Select * from table where A between '1900-01-01' and '2012-01-01' [/CODE] this work …

Databases mssql
Member Avatar for Derice
0
175
Member Avatar for mohansinhf

I am having records in a field (field_id) of a table (in mysql database), which is having ID stored per line, for example [B] 1 2 3 10 11 13[/B] above is one record, and I have many records similar to that. and, when I am writing the query [B]SELECT …

Databases mysql
Member Avatar for mohansinhf
0
82
Member Avatar for debasishgang7

Hi all i am trying to make a script which will select nth (1st,2nd blah blah..)highest record from Database. Suppose i have a table with two columns "id" and "score".And for example i wanna select the "id" of member with the 5th highest score?? I am doing this with php …

Databases mysql
Member Avatar for debasishgang7
0
136
Member Avatar for Venom Rush

Hi all I've been trawling the net trying to find out how MySQL would handle partitioning if I don't specify any values for RANGE. My code is as follows: [CODE=MySQL]PARTITION BY RANGE(vehicle_id) PARTITIONS 10()[/CODE] The table will most likely end up having roughly 50 000+ records. Can anyone perhaps give …

Databases mysql storage
Member Avatar for debasisdas
0
211
Member Avatar for adamworld

I am working on a site and I want to be able to query the appropriate table based on their location. For example, if they input they live in NY, it should query the NY table. If they input they live in CA, it should query the CA table and …

Databases mysql php
Member Avatar for adamworld
0
94
Member Avatar for jrotunda85

I keep getting the following error whenever I try to run this query on my "spot" table: [CODE]#1054 - Unknown column 'a.Longitude' in 'field list'[/CODE] The weird thing is though that the column DOES in fact exist, is spelled the same way, and has thousands of rows of data. Even …

Databases mysql php
Member Avatar for jrotunda85
0
114
Member Avatar for arsheena.alam

Hi, I have a variable @FranchiseId declared in my stored procedure If I try the following select command, will it work???? SELECT @FranciseId=(select FranchiseName FROM franchise WHERE username=@username),username FROM MyTable I hope you Understood My problem!!

Databases mysql
Member Avatar for arsheena.alam
0
127
Member Avatar for serkan sendur

Copy a table from one database to another database in another ms sql server using sql server management studio : If your table was in the same ms sql server but in another database, you would copy it using t-sql like this : SELECT * INTO NewTable FROM existingdb.dbo.existingtable; However, …

Databases mssql sql
Member Avatar for mrroad
0
843
Member Avatar for Venom Rush

Hi there I'd like to know if it's possible to combine an update and insert query into one query. What I'd like to do is insert new data into one table and update a colum in another table at the same time. For example, there are 3 different baskets (puppy …

Databases mysql
Member Avatar for nuraini
0
10K
Member Avatar for adamworld

I am trying to store millions of records with address, city, state, zip, etc. I originally had one table with 17 different fields with the primary key being id. However, I soon realized after inserting almost a million, the website began to lag and was slow. What is the best …

Databases mysql php
Member Avatar for debasisdas
0
264

The End.