15,611,312 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View Python questions
View Javascript questions
View C++ questions
View Java questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Bittu14 (Top 76 by date)
Bittu14
3-Oct-16 5:51am
View
Still it is not working.. :(
Bittu14
3-Oct-16 5:44am
View
I want it in oracle SQL.
Bittu14
3-Oct-16 4:13am
View
Dateadd function is not working in oracle SQL. It is a function of SQL server.
I have tried it before. Its seems that "DATEADD ": invalid identifier.
Bittu14
25-Sep-16 5:25am
View
Thanks.
Bittu14
8-Mar-16 2:31am
View
PHP
Bittu14
1-Feb-16 2:53am
View
in the output.
Bittu14
20-Jan-16 3:40am
View
Thanks a lot.
Bittu14
19-Dec-15 3:30am
View
I have used listagg tag for merging.
Bittu14
19-Dec-15 3:29am
View
STUFF and FOR XML is not working in SQL Developer software..
Bittu14
12-Nov-15 6:57am
View
Yes.
Bittu14
12-Nov-15 6:07am
View
I have modified the question. Is this is ok for you?
Bittu14
11-Sep-15 4:20am
View
ok. Thanks for your information.
Bittu14
11-Sep-15 4:18am
View
Thank you so much Schatak.
Bittu14
11-Sep-15 4:11am
View
suppose, I do not know what are the values has stored in the table. I need to find the duplicate values from the table, based on the ENAME column.
So, how I will find it, that is my simple question.
Bittu14
10-Sep-15 9:41am
View
If i will give the name over there then also the DUPLICATE variable having some problem.
Bittu14
10-Sep-15 9:28am
View
How I will put the name over there? Assume I am not able to see the table then how i will find that duplicate value?
Bittu14
10-Sep-15 9:20am
View
It has shown the error - "ORA-00979: not a GROUP BY expression".
Bittu14
2-Sep-15 14:20pm
View
Thanks.. It is working.......
Bittu14
2-Sep-15 14:00pm
View
If i have set only one value in an one textbox, for others remains blank then only it has shown the success message.
Bittu14
2-Sep-15 13:55pm
View
Hi Manas,
It has validated only one textbox..
Bittu14
28-Jul-15 7:09am
View
Thanks.
Could you please tell me how i will find out the lock session for a particular schema.
Bittu14
21-Jul-15 9:10am
View
Thank you so much..
Bittu14
20-Jul-15 16:10pm
View
select
t2.seq_no
from test21 t1,
(select t3.name, row_number() over (order by t3.name) as seq_no
from (select distinct name
from test21) t3
) t2
where t2.name = t1.name
order by t1.id
this query has given the exact answer but when ever i have tried to update then only i have faced the problem. Please help me out..
Bittu14
20-Jul-15 16:06pm
View
update test21 set SEQ_NUM =(select
t2.seq_no
from test21 t1,
(select t3.name, row_number() over (order by t3.name) as seq_no
from (select distinct name
from test21) t3
) t2
where t2.name = t1.name
order by t1.id)
I've tried the above query but now I am getting the below error
"ORA-00907: missing right parenthesis" can you please suggest what I am doing wrong here?
Bittu14
20-Jul-15 14:29pm
View
I want the update code. When I have tried this then some error occurred.
Bittu14
20-Jul-15 11:43am
View
If I have used distinct query for the column 'Name', then the result should be -
NAME | ID
-------------
Arijit | 120
Suman | 121
Priyam | 122
Suvayu | 124
Next, if I run the row_number()function based on the NAME column then the result should
be -
Arijit | 120 | 1
Suman | 121 | 2
Priyam | 122 | 3
Arijit | 123 | 1
Suvayu | 124 | 4
Priyam | 125 | 3
This is my logic. But I doesn't apply this with the update query. Please help me out.
Bittu14
20-Jul-15 11:36am
View
The logic behind the number is nothing. It has come as per the data sequence.
Bittu14
20-Jul-15 11:34am
View
I have tried this below query. but it has not work.
UPDATE INFO_T
SET SEQ_NO = (SELECT ROW_NUMBER() OVER(ORDER BY NAME)
FROM INFO_T)
WHERE (SELECT DISTINCT NAME FROM INFO_T);
Bittu14
20-Jul-15 11:29am
View
I have used some constraints over there, so that it has stared from 120.
Yes i understand. Once again sorry.
Bittu14
20-Jul-15 11:13am
View
Data has stored based on nothing. Means first I have insert arijit, suman like this. If you can insert the data like arijit, priyam, suvayu, that doesn't matter.
id is primary key. i have entered worng data. sorry for that. i have changed it. check once.
Bittu14
19-May-15 4:36am
View
But it has not clear for me.
Bittu14
18-May-15 8:48am
View
I know. I want it in SQL only. Search engine optimization in pl/sql.
Bittu14
18-May-15 8:37am
View
I used that one. But it has not fulfilled the exact requirement. See the example I given above.
Bittu14
30-Dec-14 3:03am
View
Thanks Sisir.
Bittu14
30-Dec-14 2:56am
View
Thanks Marciej Los
Bittu14
29-Dec-14 6:06am
View
Oracel developer software.
Bittu14
19-Dec-14 6:22am
View
Oracel SQL Server 2008...
Bittu14
19-Dec-14 2:08am
View
ok.
For create the table I used the below query:
CREATE TABLE EMP_DETAILS
( EMP_ID NUMBER(5,0) NOT NULL ENABLE,
FIRST_NAME VARCHAR2(150 BYTE) NOT NULL ENABLE,
LAST_NAME VARCHAR2(50 BYTE),
AGE NUMBER(2,0),
ADDRESS VARCHAR2(150 BYTE),
SALARY FLOAT(126) NOT NULL ENABLE,
DEPT_ID NUMBER(3,0) NOT NULL ENABLE,
DELETE_DATE DATE,
PRIMARY KEY (EMP_ID),
FOREIGN KEY (DEPT_ID)
);
And the query for created View for this table is below :
CREATE OR REPLACE VIEW EMP_DETAILS_VIEW AS
SELECT EMP_ID, LAST_NAME, ADDRESS, AGE, SALARY, DEPT_ID, DELETE_DATE FROM EMP_DETAILS
WHERE DELETE_DATE IS NULL;
Now I want to add the FIRST_NAME column into this EMP_DETAILS_VIEW, for that I used ALTER clause which is below :
ALTER VIEW EMP_DETAILS_VIEW AS
SELECT EMP_ID, FIRST_NAME, LAST_NAME, AGE, ADDRESS, SALARY, DEPT_ID, DELETE_DATE
FROM EMP_DETAILS
WHERE DELETE IS NULL;
But it has been thrown error. Which I already told you.
Bittu14
18-Dec-14 9:29am
View
But I did not want to do this as like hard coded.
Bittu14
18-Dec-14 9:26am
View
Ok. I did not post any think twice. Sorry for the inconvenience.
Bittu14
18-Dec-14 9:07am
View
A red line has shown before the "AS" clause.
Bittu14
18-Dec-14 9:03am
View
Nothing leave it.
Bittu14
18-Dec-14 9:03am
View
Yes, I tried that, but it has an error.
Bittu14
18-Dec-14 8:30am
View
Can you please let me know where is the actual problem.
Bittu14
18-Dec-14 8:29am
View
I already tried that one.
My query which I wrote :
ALTER VIEW BISA1.EMPLOYEE_DETAILS_VIEW AS
SELECT EMP_ID, FIRST_NAME, LAST_NAME, AGE, ADDRESS, SALARY, DEPT_ID
FROM EMP_DETAILS;
And it has shown some error:
SQL Error: ORA-00922: missing or invalid option
00922. 00000 - "missing or invalid option"
*Cause:
*Action:
Bittu14
18-Dec-14 8:27am
View
I already tried that alter it has shown some error which I was post.
Bittu14
18-Dec-14 5:18am
View
Yes. But I did not get any proper answer.
Bittu14
17-Dec-14 8:13am
View
One think KM Perumal, if I want to add any column inside a View then what I have to do. I was tried to ALTER that but it had shown some error. Can you please help me out of that.
Bittu14
17-Dec-14 8:06am
View
Thanks... :) @KM Perumal
Bittu14
17-Dec-14 8:02am
View
Yes it is. Just I wrote one where clause on it.
Bittu14
17-Dec-14 7:00am
View
Yes I solved the problem. Really I am very thank full that he did this for me. Try
this one :
CREATE OR REPLACE VIEW EMP_DEP_VIEW AS
select t1.EMP_ID, t1.FIRST_NAME,t1.LAST_NAME, t1.AGE, t1.ADDRESS, t1.SALARY, t2.DEPT_ID, t2.DEPT_NAME from EMP_DETAILS t1, DEP_DETAILS t2
WHERE t2.DEPT_ID = t1.DEPT_ID;
It will show you the actual result without using any join query.
Bittu14
17-Dec-14 6:20am
View
THANK YOU SO MUCH.
Bittu14
17-Dec-14 6:20am
View
THANK YOU SO MUCH.
Bittu14
17-Dec-14 5:04am
View
I know this process. But I want to change it through SQL query.
Bittu14
17-Dec-14 4:25am
View
Error starting at line : 1 in command -
ALTER VIEW BISA1.EMPLOYEE_DETAILS_VIEW AS
SELECT EMP_ID, FIRST_NAME, LAST_NAME, AGE, ADDRESS, SALARY, DEPT_ID
FROM EMP_DETAILS
Error report -
SQL Error: ORA-00922: missing or invalid option
00922. 00000 - "missing or invalid option"
*Cause:
*Action:
Bittu14
16-Dec-14 10:58am
View
I tried the query
[ ALTER VIEW BISA1.EMPLOYEE_DETAILS_VIEW AS
SELECT EMP_ID, FIRST_NAME, LAST_NAME, AGE, ADDRESS, SALARY, DEPT_ID
FROM EMP_DETAILS;]
but it will give some error.
Bittu14
16-Dec-14 10:16am
View
I can't under stand it. Can you please give me another link to me for better understand.
Bittu14
16-Dec-14 10:13am
View
Deleted
the tool name is Oracel SQL Developer
Bittu14
16-Dec-14 10:07am
View
Deleted
Yes.
Bittu14
16-Dec-14 10:04am
View
Deleted
sql server 2008
Bittu14
16-Dec-14 10:03am
View
I did not get you. About your second answer.
Bittu14
16-Dec-14 10:00am
View
Deleted
sql developer
Bittu14
15-Dec-14 10:53am
View
Then the error was occurred. That is:
Error starting at line : 37 in command -
ALTER TABLE EMP_DETAILS
MODIFY SALARY float (5,0)
Error report -
SQL Error: ORA-00907: missing right parenthesis
00907. 00000 - "missing right parenthesis"
*Cause:
*Action:
Bittu14
15-Dec-14 10:49am
View
Yes I know that. But I tried the bellow query:
ALTER TABLE EMP_DETAILS
MODIFY SALARY float(5,0);
Is there is any syntactical error?
Bittu14
1-Dec-14 6:29am
View
Thank You Mehdi...
Bittu14
1-Dec-14 3:05am
View
Ok.. Thank you...
Bittu14
1-Dec-14 3:04am
View
Thank you so much Syed......
Bittu14
27-Nov-14 9:22am
View
yes I understand. Actually I am a new trainee in vb.net that's why I am asking. If You provide me any article or any link for that then it will be helpful for me.
Bittu14
27-Nov-14 8:34am
View
Did you understand what I am wanting too..
Bittu14
27-Nov-14 8:32am
View
That is the question. Means I have to create a project in visual studio 2012.
In design part there will be a button and one OBOUT grid. After clicking on the button data will be shows in that grid and as well as it will export the grid data to an excel sheet.
Bittu14
27-Nov-14 8:18am
View
yes.
but we have to use obut grid for that.
Bittu14
24-Nov-14 7:14am
View
Did You please tell me the actual answer? It will be helpful for me.
Bittu14
24-Nov-14 7:07am
View
Ok. Thanks.
Bittu14
24-Nov-14 7:01am
View
Thanks.
But I need the above output not the below one -
C:
C:/Ram
C:/Ram/Ram1
C:/Ram/Ram1/Ram2
Bittu14
24-Nov-14 6:56am
View
1) Input is already given, means we can't take the input from user.
2) To print the output we can use only one print statement option, means we
will print the output using only one print statement.
Bittu14
24-Nov-14 6:47am
View
Deleted
Thank you so much.
But there is an error, when i was compiled it.
The actual error is :( Could not resolve the name 'StringBuilder' )
Show More