7,494 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for manish250

Hi all I am getting following exception in mysql db randomly. ** END NESTED EXCEPTION ** Last packet sent to the server was 1 ms ago. 11-9-2011 12:0:11 Exception in readFile Method in insertRecordInDataBasecom.mysql.jdbc.CommunicationsException: Communications link failure due to underlying exception: ** BEGIN NESTED EXCEPTION ** java.io.EOFException STACKTRACE: java.io.EOFException at …

Databases mysql
Member Avatar for manish250
0
235
Member Avatar for rajesh1158

I have to design a database where one requirement says "For each project, for each user, for each skill, store the marks gained". Initially, i had a table where each skill was a column(proj_id, user_id, skill1, skill2, ......., skill_N) I felt this was a bad design because the number of …

Member Avatar for rch1231
0
188
Member Avatar for rajesh1158

I have to design a database where one requirement says "For each project, for each user, for each skill, store the marks gained". Initially, i had a table where each skill was a column(proj_id, user_id, skill1, skill2, ......., skill_N) I felt this was a bad design because the number of …

Member Avatar for hfx642
0
196
Member Avatar for ravi035

how to create stored procedure for altering multiple coulmns , how to create stored for creating dynamic table and add multiple columns to created table

Databases mssql
Member Avatar for prit005
0
71
Member Avatar for dini.kumar

DATA TYPE MISMATCH ERROR CRITERIA [CODE]Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click If TextBox1.Text <> " " And TextBox2.Text <> " " And TextBox3.Text <> " " And TextBox4.Text <> " " And TextBox5.Text <> " " And TextBox6.Text <> " " And TextBox7.Text <> …

Databases microsoft-access
Member Avatar for BitBlt
0
154
Member Avatar for folberlin

hi, i have an application that feeds data into a table of a database - table name is XTABLE716C6DC3. now i need a stored procedure that takes and calculates data from that dable anytime the table is changed and store the results in a certain format into a new table …

Databases mssql
Member Avatar for adam_k
0
205
Member Avatar for dwinn

Hi Everyone, I am writing a program in VBA (within Access 2010) that grabs a specific .txt file, split up the fields as per given specification and imports the values in to an Access table. So far, I can open the file and see what the program is seeing and …

Member Avatar for dwinn
0
3K
Member Avatar for uselessninja

hi everyone they said in relational database there is no "last" concept.. and the only way to retrieve the last data entered in database is by IDENTITY and sone says TIMESTAMP... which one i would prefer to use?

Databases mssql
Member Avatar for uselessninja
0
1K
Member Avatar for Sparhauoc

Hello there, newbie question here. My mySQL time is 6 hours fast, and I don't know why or how to change it. My computer is at the right time, so apparently mySQL does not get the time from it. Where do I change the time for mySQL?

Databases mysql sql
Member Avatar for Sparhauoc
0
119
Member Avatar for Rahul V S

Hi, I am about to create a web based application, using only free web technologies like Ruby on Rails or PHP. But its a bit hard for me to finalize on a free / open source database management system, that will help in performance, scalability, portability and easy hosting. I …

Databases open-source ruby
Member Avatar for griswolf
0
810
Member Avatar for ruba_cti

I need to update a column in access where I should be removing the 7 leading characters in a field.Example: Column value before: AB34567213. Colum value after: 213 So, I tried using VB in Access and this is what I got so far: [CODE]Private Sub delete_leading_chars() Update table_name Set col_name …

Databases microsoft-access
Member Avatar for ruba_cti
0
177
Member Avatar for ppetree

OK, I have a table that has: id (int), name (varchar), parent (int) If parent contains NULL it IS the "parent" otherwise it is the child of a parent So: id=1 name=Meals parent=0 Means the above record is a "parent" (there are 100's of parents). So far, so good? Next …

Databases mysql sql
Member Avatar for ppetree
0
151
Member Avatar for nishu.tbz

can anyone tell me how to insert { in sql. Eg. insert into dm_dbo.prsn_ps_epm(product_id,imprint_name) values('123456','nisheeth{jain');

Databases mssql
Member Avatar for Netcode
0
70
Member Avatar for amrita111

What is the difference between oracle and sql? I am new to this field.Please help!!!!!!!!!!!!!!!!!!!!

Databases mssql oracle
Member Avatar for BitBlt
0
128
Member Avatar for smantscheff

I just stumbled over this: [ICODE]mysql> select "abc" = 0; +-----------+ | "abc" = 0 | +-----------+ | 1 | +-----------+ 1 row in set, 1 warning (0.06 sec) mysql> show warnings; +---------+------+-----------------------------------------+ | Level | Code | Message | +---------+------+-----------------------------------------+ | Warning | 1292 | Truncated incorrect DOUBLE value: …

Databases mysql
Member Avatar for pritaeas
0
313
Member Avatar for jovillanuev

Guys, How to make an scripts if itemnumber have no '-U' then i will place this on the right side while if there's an exising '-U' then no replacement to be done. [CODE] ItemNumber ------------------ P300-4410-DROIDERIS P300-4110-TOUR P333-4410-EVO-U P333-4129-8530PUR-U P333-4170-9330GRY-U P333-4110-8350-U RESULTS: ItemNumber ------------------ P300-4410-DROIDERIS-U P300-4110-TOUR-U P333-4410-EVO-U P333-4129-8530PUR-U P333-4170-9330GRY-U P333-4110-8350-U …

Databases mssql
Member Avatar for jbisono
0
110
Member Avatar for jovillanuev

Hi Guys, There are unwanted character in my columns. this character is came from the bulk insert. How tdo i removed this character using scripts. Please see sample below. [CODE] ItemCode--Item Number ---------------------------------------------------------- 123--Phone power on but vibrate is too weak P300-3110-VX8575 124--place a test call. P300-1710-DROID 125--power issues.touchscreen not …

Databases mssql
Member Avatar for jovillanuev
0
115
Member Avatar for network18

what;s wrong with this mysql trigger logically?? [CODE] DELIMITER | CREATE TRIGGER comment_count AFTER INSERT ON comments FOR EACH ROW BEGIN UPDATE sub_sections as t1 SET t1.published_comment_count = (select count(id) as cnt from comments where article_id=t1.id and published=0 and status=0) WHERE id= (select article_id from comments order by date_modified desc …

Databases mysql sql
Member Avatar for Morta
0
217
Member Avatar for siaswar

I installed mysql and apachi form fedora14 installation dvd when I installed fedora. no I want to run mysql interpreter for training mysql (I'm student). when I run mysql command I receive error: [CODE]$ mysql ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)[/CODE] I looked …

Databases mysql
Member Avatar for smantscheff
0
205
Member Avatar for Chitru

I don't know am i asking right question or not but my question is: I want to create a simple search site so I've team with different jobs. I have its database part to handle. I should create its database and i have not idea what should i do. I'm …

Databases java mysql
Member Avatar for anand01
0
87
Member Avatar for shushi

Guys, I have an entity-relationship diagram which I created for the Online Election Voting System, like a student government in the school. Can you guys check if this is correct? Attached to this thread contains my entity-relationship diagram.

Databases
Member Avatar for anand01
0
119
Member Avatar for Majestics

Its providing me error................................ [code] insert into products_information values(1,to_timestamp(current_timestamp,'DD-MON-YYYY HH24:MI:SS'),1200,10,1000,12,1100,10) / ERROR: date format picture end before converting entire input string.... [/code] This is making me nuts... Please Help a bit....

Databases oracle
Member Avatar for debasisdas
0
152
Member Avatar for amrita111

Whats the use of super keys and candidate keys when primary key can handle the entire thing in database?????

Databases mssql
Member Avatar for Netcode
0
92
Member Avatar for dwinn

Hello, I am currenrtly trying to write a query in Microsoft Access 2010. This query retreives a list of values from a table I have called tblTable Some of the values are numeric and some are alpha numeric. I am trying to do the query so that when it comes …

Databases microsoft-access sql
Member Avatar for dwinn
0
2K
Member Avatar for montjoile

hi. I need to create a table, but I want to set three forgein key each one of different tables. Is that posible to do with oracle?

Databases oracle
Member Avatar for Majestics
0
69
Member Avatar for stephen lowry

hi guys i have created a database for a friend which seems to be running ok (for now) my front end im using vb.net . what i need to do is make alterations to the same database which is on my computer ie add fields which i can do then …

Databases
Member Avatar for debasisdas
0
157
Member Avatar for naveedqadri

Hi All experts, I am facing problem with mysql view. I have migrated my database from oracle to mysql qith views, View on Mysql is created , but when i try to execute query it takes a long timw , some times it time qout server connection, Any body help …

Databases mysql oracle
Member Avatar for debasisdas
0
252
Member Avatar for watoth

Ok im not sure what it is I need. But I have a sort of fantasy baseball website that I want to add something to. I want to see what players have been on the most championship teams. I just don't know how to query the players against the results …

Databases mssql
Member Avatar for BitBlt
0
109
Member Avatar for Singlem

[CODE]select CS.Ref, CS.C, DT.ID, DT.Init, DT.Surname, 'C' [P], 'C' [A], 100 [M], case when Convert(Varchar(10),CA.A,120) is null then Convert(Varchar(10),CS.DC,120) else Convert(Varchar(10),CA.A,120) end, C.R, Convert(Varchar(10),C.CDate,120), Do.Outcome, CT.PhysicalOwner, Convert(Varchar(10),CS.CDate,120), Convert(decimal(8,2),CS.B, Convert(decimal(8,2),CS.CB), Convert(decimal(8,2),CS.IB), Convert(decimal(8,2),CS.Calance), Convert(money,SUM(dd.C)), Convert(money,SUM(cl.C)), CT.CID[Cust_ID], Convert(varchar(10),CS.JDate,120), CS.JCN, CO.C, Convert(varchar(10),CS.OD,120), CS.OCN, CO2.C from table1 CS inner join table2 DT on DT.DID = …

Databases mssql
Member Avatar for BitBlt
0
654
Member Avatar for jacksantho

Hi, Please help me out . I need to retrieve the records from 11th row onwards using select query. Please help me out . Its urgent. Thanks

Databases mssql
Member Avatar for adam_k
0
330
Member Avatar for y2kshane

hey how to answer to these questions Table: Sales(CustomerID , RepID , Area , SaleDate , ProductNo , Quantity , UnitPrice , ItemTotalPrice) a)considering the above table write a function to calculate the IemTotalPrice as ItemTotalPrice=Quantity*UnitPrice b)Write a SQL statement to create the above table (you must use the above …

Databases mssql sql
Member Avatar for y2kshane
0
214
Member Avatar for kishan4u1

i am building a simple online portal and i have done all the login ,registration pages and all the fields successfully get uploaded in the database but now all i got is a product display page and an shopping cart 1. i want help is how do i pass the …

Databases mysql php
Member Avatar for mulkave
0
294
Member Avatar for jovillanuev

Guys, I have records from table 1. the objective is to get the date from Table 2. when i try to use select statement to obtain the records it pull all itemnumber with the same item number in TABLE 2. is there any idea to to this using the result …

Databases mssql
Member Avatar for jovillanuev
0
151
Member Avatar for aplee

Hello, Please help me with my problem, this is the simple select statement I have for target bid date: [CODE]ProjectOverview.[Target Event Date - Date] AS [Target Bid Date][/CODE]now, I want to ask how can I select the latest target event date and if value is null, put "no date" caption …

Databases mssql
Member Avatar for adam_k
0
165
Member Avatar for Majestics

i have two products , product one has 5 entries of date and product 2 has 4 entries. I want to select max date entries of both... [code] select max(entrydate) from products,products_information where products_information.pno = products.pno [/code] It return a single max date of one product.... Please Help ..............

Databases oracle
Member Avatar for Majestics
0
91
Member Avatar for Tekkno

I have around 20 tables in my database. I want to count every row of every table using COUNT and get a total. I have tried doing a separate select statement for each table then using UNION but I cannot find a way to join the results to get just …

Databases mysql
Member Avatar for Oca13th
0
195
Member Avatar for lloydsbackyard

I have this code for mysql, and in my table i have date entries in my date field from my date table ....i want to make use with between clause ...below is my sql statement..but it displays nothing even there are dates in between... SELECT * FROM date WHERE date …

Databases mysql sql
Member Avatar for lloydsbackyard
0
75
Member Avatar for hatebin

Hello My task is to write a procedure which has to get information about price of a product and updates the data base for produc_id=777. if product_pirce < 400 then product_price=500 if product_price > 400 then product_price=300 IN PL/SQL: [CODE] create or replace procedure change_price is begin if (select price …

Databases oracle sql
Member Avatar for hatebin
0
716
Member Avatar for AndreRet

I have been so stupid to hit go at the bottom after I added a new user, deleting all users including root. I have re-installed xampp twice, tried to change the password via the xampp security, still with no success. xAmpp loads perfect on [url]http://localhost[/url], phpMyAdmin though shows the following …

Databases mysql php
Member Avatar for WebStudio
0
2K
Member Avatar for divyakprabh

Hi, I have a java appllication which has a query depending on the requirement, select EmployeeID, TransactionAmount from employee where EmployeeID IN ('E123','E234') group by EmployeeID; which works well in mysql, but for oracle a get an error like [Err] ORA-00979: not a GROUP BY expression Can anyone help me …

Databases oracle
Member Avatar for arshadshabbir
0
417
Member Avatar for jovillanuev

Guys, I have a Date string. My objective is how to get the Datename. I got this Receivedate as string when I used the Bulk insert. i make the receiptdate as nvarchar because i got an error when i used the bulk insert. [CODE] Select ItemNumber, PurchasePrice, ReceivingPO, Cast(ReceivedDate as …

Databases mssql
Member Avatar for jovillanuev
0
167
Member Avatar for serkan sendur

How do i change the name of a table in my sql server 2005 express edition database using visual studio server explorer?

Databases mssql sql visual-studio
Member Avatar for optician
0
272
Member Avatar for vishalbhavsar

Hi, I am currently studying the database. I came across the concept of 'Keys'. I am very much confused in all of them. Can anyone help me by giving comparison between them along with some example?

Databases
Member Avatar for urtrivedi
0
147
Member Avatar for dougancil

I have the following stored procedure: [code] SELECT moncallAdd.FirstListing, DATEADD(MINUTE, mOnCallAdd.StartOnCallTime, DATEADD(DAY, mOnCallAdd.StartOnCallDate, '12/31/1899')) AS OnCallStart, DATEADD(MINUTE, mOnCallAdd.duration, DATEADD(MINUTE, mOnCallAdd.StartOnCallTime, DATEADD(DAY, mOnCallAdd.StartOnCallDate, '12/31/1899'))) AS OnCallEnd, 'Added' As Activity FROM mdr.dbo.mOnCallAdd WHERE DATEADD(MINUTE, mOnCallAdd.StartOnCallTime, DATEADD(DAY, mOnCallAdd.StartOnCallDate, '12/31/1899')) BETWEEN Convert(VARCHAR(10), GetDate(), 101) AND GetDate() and mOnCallAdd.SchedName = @schedname UNION SELECT moncallDelete.FirstListing, DATEADD(MINUTE, …

Databases mssql
Member Avatar for adam_k
0
129
Member Avatar for coroll

Hi all, In my table i have duplicate rows. i want to get distinct rows. select distinct * from table1 does not work. select distinct col1,col2,col3,col4 from table1 does not work. both say: The text data type cannot be selected as DISTINCT because it is not comparable. select distinct(col1) col2,col3,col4 …

Databases mssql
Member Avatar for coroll
0
183
Member Avatar for kheijhei

hi, please help in my project in visual studio 2008 and connecting it to mySQL, I'm going to create a simple identification system, can you please help me with the codes? (Form1 - Log-in, Log-out) Here's my project proposal, I need to identify an ID number and a password. Like …

Databases visual-studio
Member Avatar for adam_k
0
84
Member Avatar for coroll

Hi all, I want to know how to assin a return value to a variable when calling a regex function. it always returns a bit type of value(its ok). i want that bit type of value tobe cheked whether it is '0' or '1' this is my C# code in …

Member Avatar for coroll
0
181
Member Avatar for dr.4030

Hi I create some tables in EasyPhp>>Phpmyadmin>>test(db name)>>((localhost)) and it works correctly with my designed page in dreamweaver but i wanna upload all of tables into the mysql db in cpanel So, the question is How can I move all of the tables with saving details to mysql db in …

Databases cpanel mysql
Member Avatar for anand01
0
133
Member Avatar for toydiaz

Hi, i work with SQl Navigator and Oracle and i want to buy Mac laptop, but i am not sure if Oracle 11g is going to Work in Mac. So the question is: If SQL navigator 6.2 and Oracle 11g can work in Mac OS. Thank you.

Databases oracle sql
Member Avatar for toydiaz
0
464
Member Avatar for ranu jain

hello, i wrote some commands in notepad and saved it as .sql and i m running these commad at my sql by command- [COLOR="Red"]mysql>source C:\Program Files\MySQL\MySQL Server 5.0\bin\script.sql;[/COLOR] then its run.. but hat to do if i write it without giving whole path. i ren this command-- [COLOR="Red"]mysql> \. filename[/COLOR] …

Databases mysql sql
Member Avatar for RvSon
0
235

The End.