2,403 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for kireol

Pardon this post here as I didn't see any Postgres forum. I have a table with a 16 length bit value. Can someone please help me how I do the where clause on my select? example data for that field 0000000000000001 0000000000000011 0000000000000010 how would I select one of the …

Databases mysql
Member Avatar for kireol
0
97
Member Avatar for Link82

Hi everyone, A few days ago I posted a question which someone did reply to. However, the tables have been re-arranged a bit and I didn't want to make my last thread confusing, so I thought I'd start fresh here. (Mod, you may close down my other thread; thanks). So …

Databases dataset mssql
Member Avatar for sknake
0
303
Member Avatar for ROTC89

ok so i am working on a program that has a table of all the presidents and info on each of them. i tried to insert the date of their birthdays and deaths, but just got 0000-00-00 for a result when i went to see what the outcome looked like. …

Databases mysql
Member Avatar for ROTC89
0
76
Member Avatar for CoSIS1

I want to find the percentage for each question’s answer and how many user response to that question The answer either yes , no, escaped (null) Table structure :[CODE] CREATE TABLE useranswers ( userAnswerID int(10) unsigned NOT NULL auto_increment, answer varchar(45) default NULL, userType varchar(45) default NULL, ques_tesxt varchar(300) default …

Databases mysql
0
74
Member Avatar for Link82

Hi everyone, I've never had to do this before sooo, I need help. I have a table which maps managers to regular employees. So you could say that Manager A is mapped to 20 peeople and Manager B is mapped to 5, and so on. So the table looks like …

Databases dataset mssql
Member Avatar for sknake
0
357
Member Avatar for Thirusha

I m trying to execute the sdo_migrate.to_current method like this : [CODE]execute sdo_migrate.to_current('tablename');[/CODE] but i keep getting invalid sql error, and i dont understand why. Please help

Databases oracle
Member Avatar for Thirusha
0
100
Member Avatar for S2009

Hi all, I am creating a windows application. I have a column in the backend - MS sql server 2005 as ID which stores Patient Id. The values for this column should start with PT and contain the serial numbers in ascending order. Eg. PT001 PT002 PT003 I want to …

Member Avatar for kvprajapati
0
140
Member Avatar for Ibn Saeed

Hello I would like to know how to display orders placed on a certain day. For e.g. I would like to display orders placed today. My MySQL database contains the following tables: 1). orders 2). orders_statuses Under [B]orders[/B], I have the following fields: 1). orders_id 2). orders_placed_date Under [B]orders_statuses[/B], I …

Databases display mysql
Member Avatar for Ibn Saeed
0
122
Member Avatar for arshadshaikh

Is it possible that select records for example 20 records from the table randomly, but in addition 1 certain record for example 3rd record. Let me explain: SELECT * from table limit 1, 20 rand(); In this way I will get 20 randomly records but I want that one certain …

Databases mysql
Member Avatar for Menster
0
93
Member Avatar for Venom Rush

Hi all I've been trying to find a way of doing this and have come up dry. Is this possible? If so could someone tell me how to go about this? Much appreciated Venom Rush

Databases mysql
Member Avatar for Venom Rush
0
87
Member Avatar for nigelburrell

Hi, I'm not entirely sure which forum to post this question because I cannot determine whether it's a MySQL, Joomla, or PHP issue. But I will post it here, as some of you may know about this. I am using a custom built "user" table in my MySQL database, and …

Databases java javascript mysql
Member Avatar for nigelburrell
0
165
Member Avatar for NextCom

Error message ”[Microsoft][ODBC SQL Server Driver][SQL Server]String or binary data would be truncated.” comes when you insert/update a larger value than the column is specified for. But is there a way to detect what column, or what value that is to large? I’m thinking about splitting up the INSERT string, …

Databases mssql
Member Avatar for NextCom
0
5K
Member Avatar for bubbafunk1

I have recently taken over the running of an e-commerce website. Once in a while i will need to increase the prices of certain products by any given percenatge. The products all have a code starting with 3 letters and then digits. for instance: ffc1234, ffc1245, dcc4544, dcc5799, vff300, and …

Databases mysql
Member Avatar for bubbafunk1
0
971
Member Avatar for S2009

Hi all, I am creating a trigger which should be triggered on insert to BOOKISSUEDETAILS table. I want to alter the table LIBRARYBOOKDETAILS table only if the Inventory column value is greater than 1. Initially I have created the trigger in the following way. But now I want to alter …

Databases mssql
Member Avatar for S2009
0
1K
Member Avatar for ankushbansal89

I have written a complex stored procedure which have a log table which keeps the track of success/failure of each and every query in the stored procedure. If there is any error in any of the query entire transaction is rollback . while rollingback, data in log table is also …

Databases mssql
Member Avatar for sknake
0
85
Member Avatar for mathmath

Hi All, I have data like the following: Stuff Sizes ID pen s1 100001 pen s2 100002 pen s3 100003 pencil s1 100001 pencil s3 100004 pencil s5 100007 pencil s2 100006 ruler s7 100005 ruler s8 100008 .. .. where each size is coordinate with a unique ID number; …

Databases mssql
0
77
Member Avatar for diafol

I recently came across an example where binary data was stored in a column which related to the sum of all foreign key id integers. This was the scenario: id [int] from [int] message_title [varchar,100] message [text] to [int] I assumed the 'to' field was a foreign key on the …

Databases mysql
0
59
Member Avatar for MarcusMaximus

i have an access report with two sub reports. A text box in the main report adds 2 values in both sub reports together. One value is 10.22 and the other is 13.08 which should amount to 23.30 but the value is coming out at 23.29 which is off by …

Databases microsoft-access
Member Avatar for MarcusMaximus
0
109
Member Avatar for mathmath

Hi everyone, I am working on a project where i have encounter such problems: Data samples: LA-1-2, LA-1-2-33, LA-1-22-333-4444, LA-2-3, LA-12-34, LA-123-45-67 .. with upto 8 dashes Objective: I need to find the values behind each dashes into multiple columns in orders. [e.g LA-1-2-33 will have columnA = 1,columnB = …

Databases mssql
Member Avatar for jbisono
0
164
Member Avatar for Venom Rush

EDIT: I just realized I should have posted this in the MySQL section. If a mod can move it there I'd appreciate it. Thanks :) Hi all I have two tables. The first one has the details of each fruit, its code, markup percentage, it's cost price and the amount …

Databases mysql session
Member Avatar for Venom Rush
0
221
Member Avatar for suretd

Good Day, I am using an Ms Access Database to design a StockTracker applicaton. The application is used to check the stocks of users. Firstly I need to sign on as an administrator and then be able to add users and their stocks to the database. I have created the …

Member Avatar for suretd
0
175
Member Avatar for bayangan

Background: I have many tables for ex: [B] Nominations: --------------- Type (there are 3 types) WorkOrders: ---------------- Type (there are 7 types)[/B] I have many typical tables like these. In designing database, I need to know which approach is wiser ie to make a control table for each, or to …

Databases
Member Avatar for timothybard
0
112
Member Avatar for phpdude89

Hello... I need to get data from one table while omitting data that exist in the other table. This is the query I am running but I keep on getting duplicates since there are more the one row in the second table. Table1 - 'countries' with fields 'Country_Code' and 'Country_Name' …

Databases mysql
Member Avatar for jbisono
0
144
Member Avatar for alexstrong29

Hi, If I have a stored procedure that creates a table of 4 rows (recommended products for a given product). What's the best way to create a cached table of these 4 recommended products for EVERY product in a products table. (Cached table being 4 times bigger than product table) …

Databases mssql
Member Avatar for germaine.tay
0
141
Member Avatar for seblake

I am REALLY new to SQL. Teaching myself C#; downloaded SQL Express 2008. (Not sure of the terminology either...) Successfully created several tables for my desktop customer database. I am not able to populate the database yet... Do I have to create my own application to add data to the …

Databases mssql sql
Member Avatar for seblake
0
146
Member Avatar for gnobber

Hi, I just would like to ask if there is a benefit regarding this type of relationship between tables. Say I have a table named Student. I usually relate a table (one-to-one) to extend it. What I mean is so as to not put too much columns in Student table …

Databases
Member Avatar for xpartmgr
0
135
Member Avatar for Mandler

I'm writing a query to summarize survey results. There are two tables... 1) The Profiles table contains the users' answers. There are four columns: ProfileID (for the unique key), QuestionID (a number representing canned questions from another table), Answer (a number representing multiple choice answers from another table), and UserID. …

Databases mysql
Member Avatar for Mandler
0
159
Member Avatar for fayola

hey, first off I'd like to state that I am pretty new to ms sql and stored procedures tho I have worked with sql for quite some time. My employer would like me to write a script which takes html content from a mssql db (originally delivered dynamically) and create …

Member Avatar for fayola
0
240
Member Avatar for sid78669

Hi, As a requirement of one of my assignments, we have to upload images, videos and audio files in a column called fileContents. Earlier I had set the data type for the column as 'Image'. But my professor says that I wont be able to upload Audio or video to …

Databases audio mssql sql video
Member Avatar for sid78669
0
105
Member Avatar for bhanu1225

Hello All. Is there any syntax for [COLOR="Red"]getting fields in a column in an alphabetical order[/COLOR] in mysql? See, for example... I have a two column with "NAME & NUM". NAME NUM BHANU 6 KIRAN 3 ADAPA 8 CHANDU 7 I need to get the names in alphabetical order. There …

Databases mysql
Member Avatar for bhanu1225
0
107
Member Avatar for SKANK!!!!!

its a mess. i dont know why it would be doing this. considering the message it says its in the inbox in the mysql database and then its not. i dont know what to do. its php and mysql database. is there a posiblitily its showing up on the webpage …

Databases mysql
Member Avatar for SKANK!!!!!
0
144
Member Avatar for adamf07

Hey all, I'm trying to insert a bunch of rows from an xml document into an SQL database. I have a stored procedure that I'm calling from my program after I generate the XML string and pass it into the SP. It runs with no (visible) errors, but when I …

Databases mssql sql xml
Member Avatar for adamf07
0
181
Member Avatar for vuyiswamb

Good day All I have a Challenge. I have the Following StoredProcedure that is doing the Following [code] IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[temp]')) drop table [temp] --Creation of Temp1 SELECT MTN.ID,S.DESCR,ISNULL(MTN.CYCLETEMPLATE,C.CYCLES) AS CYCLETEMPLATE into temp FROM TBL_STAFF S INNER JOIN MTM_ACTV_STAFF MTN ON S.ID = …

Databases asp.net mssql sql
Member Avatar for vuyiswamb
0
160
Member Avatar for Lewis_UnderGrad

Hi guys, A few months ago i installed a version (5.0 i believe) of MySQL on my machine with no problems at all. Two weeks ago i had to format my hard drive and reinstall my OS. I have successfully installed Visual Studio 2005 and tried to install MySQL last …

Member Avatar for peter_budo
0
138
Member Avatar for Xessa

I want to insert an array into a table. Each array element is a row in the table. How can I achieve my goal? I don't want to use [code] VALUES x1,x2,x3,x4 ......[/code]

Databases
Member Avatar for humbug
0
164
Member Avatar for vedro

Hello I am new to this forum. I am using MS SQL 2005 Express I have a database GK.dbo (the original databese) and I have created a database GK_2009.dbo (it is created from the original database, so it has the same structure) I want to create a script that would …

Databases data-structure mssql
Member Avatar for vedro
0
132
Member Avatar for Xessa

I want to get the row number of a specific row in the table. Also is this legal? [code] INSERT INTO (SELECT * FROM myTable WHERE mynumber=2) VALUES ........ [/code]

Databases legal sql
Member Avatar for pty
0
138
Member Avatar for sangam100

Hi all, I have a table named comments having columns id, name, email, comment, commentedon, approved, and approvedon. In some cases I would like to let the admin of my asp.net web page to approve all the comments at once. Which would be the effective sql code and why? update …

Databases asp.net mssql
Member Avatar for kvprajapati
0
99
Member Avatar for plut0564

Has anybody used this microsoft tool SSMA? I can connect the two databases OK, and can convert tables from ORACLE to SQLSERVER 2005, but the data refuses to go across. Any info will be helpful. Thanks, Jim

Databases mssql oracle
Member Avatar for Ramy Mahrous
0
104
Member Avatar for mikenco

I have joined a few tables together and all seems to work well.. [code] SELECT * FROM products JOIN underwriters ON (products.underwriter_lookup = underwriters.id_uw) JOIN countries ON (products.country_lookup = countries.id_co) JOIN repay_types ON (products.repay_type_lookup = repay_types.id_repay) JOIN base_rates ON (products.base_rate_lookup = base_rates.base_rates_id) [/code] However, I have been asked if I …

Databases mysql
Member Avatar for mikenco
0
117
Member Avatar for baudday

I know this is for MySQL, but there really isn't a forum for 'other databases.' I was wondering if anyone could point me in the right direction for learning SQLite. I tried googling it, and I did find some helpful things, but nothing that shows me how to use it. …

Databases mysql sqlite
Member Avatar for baudday
0
125
Member Avatar for TBotNik

All, Have a set of nested forms/subforms in this order: frmMain => sfmMain => ifmTABset => sfmUSR => sfmSETcfg where sfmMain & sfmUSR are the control fields containing the subforms being called and the TAB control TabCtl0 resides in the TABBED form of ifmTABset. I am trying to open the …

Databases microsoft-access
Member Avatar for TBotNik
0
144
Member Avatar for ssreevidya.m

Hi, How can I delete duplicate records from a table in a single query. Thanks in advance.

Databases mssql
Member Avatar for Aslam Patel
0
100
Member Avatar for c_skyscraper

hi guys, I have one table: exams(e_no integer primary key,e_name text); now i want to create another table called questions which should have primary key that is combination of exam.e_no (foreign key) and question.q_no questions(q_no,e_no,questions text); so i would like to make q_no and e_no both act as primary key …

Databases mysql
0
76
Member Avatar for Kusno

Dear all, How do I change primary key field from query because if I use VS Designer, raised an error about [B]time expired[/B] ? I want to extend my FK field length. Thanks

Databases mssql
Member Avatar for Kusno
0
131
Member Avatar for redburn

[B]I am trying to insert a new record into a mysql database and get the following error:[/B] You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '30, 60, 90, DayCreated) VALUES ( 'Rush Shirt', …

Databases mysql php sql
Member Avatar for nav33n
0
79
Member Avatar for vuyiswamb

Good Morning All I have a table named “Final” with Values like this [code] ID || DESCR || CYCLE ====================================== 1 || Earl G || 20 2 || Earl G || 21 3 || Earl G || 22 4 || Davidson I Dr || 20 5 || Davidson I Dr …

Databases mssql sql
Member Avatar for vuyiswamb
0
481
Member Avatar for gillivt

I am using SQL Server 2005 express. I want to insert a record into a table and return its primary key. Here is my SQL Procedure: [code=sql] ALTER PROCEDURE InitialiseHistory AS INSERT INTO StatusHistory (StatusCode, DateChanged, Comments) VALUES (0, { fn NOW() }, 'Status initialised to UNKNOWN') RETURN SCOPE_IDENTITY() [/code] …

Databases asp.net mssql vb.net
Member Avatar for gillivt
0
197
Member Avatar for Grn Xtrm

Hello friends, I want to clear a table by clicking a button on a form. I have created the query to clear the table but I cannot make it the source for the command button on the form. Is this possible? Thanks for your time and help.

Databases microsoft-access
Member Avatar for Grn Xtrm
0
162
Member Avatar for brixton

Hello! I have a DB setup which simplified looks like this: PRODUCT(id, owner_id) OWNER(id) What I want to do is to produce a list of how many products each owner has, and then sort it in some way, all in a single query. How do I go about this? Thanks!

Databases mssql
Member Avatar for brixton
0
107

The End.