How to findout rows which are not null ?
Hi friends,
Can anyone tell me how to find out the no of rows which is having full data in each column (not null) ?
Ex:- TEST_TABLE having 1000 columns and lakes of rows.
myQuestion:- I need to find the no of rows which are filled with 1000 columns filled with not null data.
Thanks in Advacne.
Kishore.
Hello
You're just going to have to write the query with IS NOT NULL on each column. This will help generate the predicates for the WHERE clause to save quite a bit of typing...
SELECT
' AND '||column_name||' IS NOT NULL'
FROM
all_tab_columns
WHERE
table_name = 'TEST_TABLE'You can take the output and add that to
SELECT COUNT(*) FROM test_table WHERE 1=1 HTH
David
Similar Messages
-
How to find documents which are not linked to a project?
Hi all,
i'm just looking for a variant to search for documents which are not linked to a project within ta SOLAR_EVAL.
I need a way to report how much documents are not linked to a project; just stored in KW.
Can anyone give a hint?
Thanks a lot!
JanHi Jan,
This report SOLMAN_UNUSED_DOCUMENTS will help you identify the documents which are not linked to the project.
(OR) Use Tcode: SI80 to find any document in SAP Solution Manager KW.
Regards,
Sanjai -
How to find aggregates which are not used.
Hi ,
There are lot of aggregates in my system , so i should deactivate the aggregates which are not used from long back. so how to find out all those , can u plz guide me ,You can also check the usage column of the aggregates. If usage value is high then the aggregate is used very frequently.
If there is no value at the last used then the aggreagete is not used at all.
Hope it helps
Regards
Sadeesh -
How to push apps which are not available in the App Store?
Hi :-)
I've got one question: I would like to push apps via profile manager to different devices, which are not available in the App Store, so I can not buy them via VPP.
Example: TeamViewer for OS X.You can't. Use something like Apple Remote Desktop.
-
How exclude multiple values which are not in sequence ( range )
Hi Abapers,
My Requiremnt is to exclude multiple values which are not in sequence in selection screen.
I want to restrict some values .
please provide sample code.
thanks & regards,
Hari priyaSELECT-OPTIONS : s_matnr FOR mara-matnr.
INITILIZATION.
s_matnr-sign = 'E'. " E means Excluding.
s_matnr-option = 'EQ'.
s_matnr-low = '1000'.
append s_matnr.
s_matnr-sign = 'E'.
s_matnr-option = 'EQ'.
s_matnr-low = '1500'.
append s_matnr.
s_matnr-sign = 'E'.
s_matnr-option = 'BT'.
s_matnr-low = '2000'.
s_matnr-high = '3000'.
append s_matnr.
START_OF_SELECTION.
SELECT * FROM MARA INTO TABLE itab WHERE mara IN s_matnr.
the above s_matnr has values 1000,1500, 2000 - 3000.
so the above code fetches all the values excluding 1000,1500 and between 2000 and 3000.
Regards
Bala Krishna -
How to upload podcasts which are not in the iTunes podcast library?
or how to create a playlist of podcasts?
I have some podcasts as mp3 files I'd like to upload. These podcasts are not in the Itunes podcast library. I downloaded them from another source. What I do not understand is why iTunes makes a difference between podcast mp3 files and music mp3 files. If I put my podcasts into a playlist and try to synchronise the playlist with iPhone, the files are not uploaded. Actually I do not see the playlist listed in the page "Music" of my device "iPhone".
Any ideas?I've usually found using outer joins to be very efficient in performing NOT IN/NOT EXIST type operations.
WITH t1 AS (
SELECT 100 type, 1 begin_no, 10 end_no FROM dual
UNION ALL
SELECT 200 type, 10 begin_no, 20 end_no FROM dual
UNION ALL
SELECT 300 type, 20 begin_no, 30 end_no FROM dual
, t2 AS (
SELECT 100 type, 5 no FROM dual
UNION ALL
SELECT 100 type, 6 no FROM dual
UNION ALL
SELECT 100 type, 11 no FROM dual
UNION ALL
SELECT 100 type, 21 no FROM dual
UNION ALL
SELECT 200 type, 5 no FROM dual
UNION ALL
SELECT 200 type, 6 no FROM dual
UNION ALL
SELECT 200 type, 11 no FROM dual
UNION ALL
SELECT 200 type, 21 no FROM dual
UNION ALL
SELECT 300 type, 5 no FROM dual
UNION ALL
SELECT 300 type, 6 no FROM dual
UNION ALL
SELECT 300 type, 11 no FROM dual
UNION ALL
SELECT 300 type, 21 no FROM dual
SELECT t2.*
FROM t2
, t1
WHERE t1.type (+)= t2.type
AND t2.no BETWEEN t1.begin_no(+) AND t1.end_no(+)
AND t1.type IS NULL;
output is:
TYPE NO
200 21
200 6
200 5
300 11
300 6
300 5
100 21
100 11 -
How to check all items are not null in CAML Query?
HI All,
In a CAML Query, i got three items. In all three items, a particular column(Closure Date) should not be null. How to check in all three items, where 'Closure date' is not null?
Thanks in advance!Hi,
Try this:
"<Where><IsNull><FieldRef Name='Closure Date' /></IsNull></Where>"
Hope it hepls!
Thanks,
Avni Bhatt
If this helped you resolve your issue, please mark it Answered -
How to find topics which are not assigned to a map ID
Perhaps I am missing something very obvious in the Edit Map IDs window, but I can't find a way to easily identify topics which have not been given a Map ID.
Initially, I selected all topics and used the auto map option for the project map file, but I am constantly adding topics and don't always remember to go straight in and assign an ID at the time of creation.
Can somebody point me in the right direction?
Thanks!
ChloeHi Chloe. You can't get that from the mapids dialog but you can by running the Topic Properties report with the mapid option turned on.
Read the RoboColum(n). -
Return the column names for which the row values are not null.
Hi i m a new guy to db admin, and i need a sql script which should return column names of the particular table. and the returned column should have value (fyi - if the column has null value column name should not come in the sql o/p).
Exmple:
table name - A
s.no name mark status fee
1 aa 45 p null
2 bb 30 null paid
3 cc 35 p paid
fyi -1) if i give the table name(A) and s.no (2) the o/p should be -- name,mark.
2) if i give the tablename(A) and s.no (1) the o/p should be --- name,mark,status.
Thanks
Krishna.
Edited by: user13294228 on Jun 14, 2010 10:54 PMBTW,
The previous solution is for all values of the column, if you want a specific row, you can add it in where clause.
I mean in your example, it you look like:
SET serveroutput on;
DECLARE
l_cnt NUMBER;
l_str VARCHAR2 (255) := '';
l_table_name VARCHAR2 (255) := 'YOUR_TABLE_NAME';
l_col_cond VARCHAR2 (255) := 'S_NO';
l_val NUMBER := 1;
CURSOR c_col
IS
SELECT column_name
FROM user_tab_columns
WHERE table_name = l_table_name;
BEGIN
FOR i IN c_col
LOOP
EXECUTE IMMEDIATE 'SELECT COUNT ('
|| i.column_name
|| ') FROM '
|| l_table_name
|| ' WHERE '
|| l_col_cond
|| ' = '
|| l_val
INTO l_cnt;
l_str := l_str || CASE
WHEN l_cnt = 0
THEN ''
ELSE i.column_name
END || ',';
END LOOP;
l_str := SUBSTR (l_str, 1, LENGTH (l_str) - 1);
DBMS_OUTPUT.put_line (l_str);
END;Saad,
Edited by: S.Nayef on Jun 15, 2010 11:54 AM -
How to share documents which are NOT photos?
I only see how to create a family for IPhoto sharing. What about documents in folders I create? How to share non-photo items with friends, without giving someone my username&password, which then gives FULL access to everything? Not Cool; or so user-friendly!
You could try to send the large audio attachment using Mail Drop.
See this help page: Mail (Yosemite): Add attachments
Send large attachments using Mail Drop
You can use Mail Drop to send files that exceed the maximum size allowed by the provider of your email account. Mail Drop uploads the large attachments to iCloud, where they’re encrypted and stored for up to 30 days.
If you have an iCloud account and you’re signed in to iCloud when you click Send, Mail automatically sends the attachments using Mail Drop. Mail Drop attachments don’t count against your iCloud storage.
If you don’t have an iCloud account, or if you’re not signed in, Mail asks you whether to use Mail Drop (select “Don’t ask again for this account” to always use Mail Drop).
If a recipient uses Mail in OS X Yosemite, the attachments are automatically downloaded and included in your message just like any other attachment. For other recipients, your message includes links for downloading the attachments and their expiration date.
You can turn Mail Drop on or off for an account. Choose Mail > Preferences, click Accounts, select your account, click Advanced, then select or deselect “Send large attachments with Mail Drop.”
It seems not yet to work always reliably, but perhaps you are lucky. -
How to use Fonts which are not installed on the users computer?
I need to use various fonts in an applet without forcing the user to install them. I have found this method
createFont(int fontFormat, InputStream fontStream)
Returns a new Font with the specified font type and input data.
How can I use this or any other routines to catch the font placed somewhere on the internet?
Sincerely,
Trevor HardcastleIn java 1.3.1, the type parameter has to be Font.TRUE_TYPE, which just leaves you with the problem of determining the correct fontStream parameter. You can easily obtain an InputStream for a remote resource by creating a URL to the resource (which presumably must specify a .TTF font file), and then using the method URL.openStream().
Be aware, however, that if you want to access URLs from within an applet, then there are security implications of trying to retrieve data from remote machines other that the one directly hosting the applet (read up on applets and security policies). -
How to delete films which are not fully downloaded from my iPad?
I am trying to delete films from my iPad. I can't see any 'delete' function. The reason could be my movies are being downloaded and it ran out of space. Both the movies are halfway through and got stuck, and wouldn't give the delete option. Any help?
Hi there sureshu,
You may want to try force closing all open apps and resetting the device as an initial troubleshooting step. Take a look at the articles below for more information.
iOS: Force an app to close
http://support.apple.com/kb/ht5137
Turn your iOS device off and on (restart) and reset
http://support.apple.com/kb/ht1430
-Griff W. -
Getting the total number of the parameters that are not null
hi,
i can get all the parameter names of a http request using this statement:
Enumeration e=request.getParameterNames();if i want to know how many parameters there are in the request
i just need to count the total number of elements in the enumeration
but how can i get the total number of parameters which are not null?
thanks in advancebut how can i get the total number of parameters
which are not null?Only one way that I know of... loop over the parameter names and check if they are null or not!!!!!!!!!!!!!!!!!!!!!
xH4x0r -
Delete Rows from T1 which are Not in T2
Hi
I've 2 Tables like below
T1
N1
N2
2
11
2
22
3
33
8
44
8
88
T2
N1
N2
2
22
8
88
If I Run Delete query, I must delete Rows from T1 which are Not in T2
For example, I must delete Rows 1,3,4 from T1
So how to write that delete query? Please adviceDelete from T1
Where not Exists (select * from T2 Where t1.N1=t2.N1 and t1.N2=t2.N2)
--or
Delete t
From t1 t
left JOIN t2 m
ON m.N1=t.N1 and m.N2=t.N2
WHERE m.N1 is null and m.N2 is null
--Or
;With mycte as
select N1,N2 from T1
Except
select N1,N2 from T2
Delete t
From t1 t
INNER JOIN mycte m
ON m.N1=t.N1 and m.N2=t.N2 -
How to delete images from folder which are not in the database
I am created windows form
i wont to delete images from the folder where i have stored images but i only want to delete those images which are not in the data base.
i don't know how it is possible . i have written some code
private void button1_Click(object sender, EventArgs e)
string connectionString = "Data Source";
conn = new SqlConnection(connectionString);
DataTable dt = new DataTable();
cmd.Connection = conn;
cmd.CommandText = "select * from tbl_pro";
conn.Open();
SqlDataAdapter da = new SqlDataAdapter(cmd);
da.Fill(dt);
int count = Convert.ToInt32( dt.Rows.Count);
string[] image1 = new string[count];
for (int i = 0; i < count; i++)
image1[i] = dt.Rows[i]["Image1"].ToString();
string[] image2 = new string[count];
for (int i = 0; i < count; i++)
image2[i] = dt.Rows[i]["Image2"].ToString();
var arr = image1.Union(image2).ToArray();
string[] arrays;
String dirPath = "G:\\Proj\\";
arrays = Directory.GetFiles(dirPath, "*", SearchOption.AllDirectories).Select(x => Path.GetFileName(x)).ToArray();
int b= arrays.Count();
for (int j = 1; j <= b; j++)
if (arrays[j].ToString() != arr[j].ToString())
var del = arrays[j].ToString();
else
foreach (var value in del) // ERROR DEL IS NOT IN THE CURRENT CONTEXT
string filePath = "G:\\Projects\\Images\\"+value;
File.Delete(filePath);
here error coming "DEL IS NOT IN THE CURRENT CONTEXT"
I have to change anything .Will It work alright?
pls help me
SmsHi Fresherss,
Your del is Local Variable, it can't be accessed out of the if statement. you need to declare it as global variable like below. And if you want to collect the string, you could use the List to collect, not a string. the string will be split to chars
one by one.
List<string> del=new List<string>();
for (int j = 1; j <= b; j++)
if (arrays[j].ToString() != arr[j].ToString())
del.Add(arrays[j].ToString());
else
foreach (var value in del)
string filePath = "G:\\Projects\\Images\\" + value;
File.Delete(filePath);
If you have any other concern regarding this issue, please feel free to let me know.
Best regards,
Youjun Tang
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.
Maybe you are looking for
-
Iphone 5s restarting & other issues-HELP
Hello there, I bought my iPhone 5S, after owning an iPhone 5. I have to say I like my iPhone 5 better. Does anyone else with the iPhone 5S have problems with lots of apps, even apps that come with the phone, just automatically closing or having probl
-
Purchase order price change report
Hello How to retieve the purchase order price change report ? do we have any standard report for it or any table which gives these data? kindl
-
C7 internet connection problem through wifi
HI my home wifi is working fine ,i am facing problem in my office . In my office we are using netgear router .when i connect my c7 mobile with wifi .it is connecting with office network but when i use internet it is very much slow .even for opening
-
Hi everyone My problem (well not a problem but) with Adobe Dreamveawer is viewing css styles at properties bar. At Adobe Dreamveawer CS3 you could see the background, font type, color etc in short as you designed. This useful function is seems disabl
-
Trying to get the contact phone number on Verizon site and it is not working
I am trying to call teh Customer Support number to discuss my Order, but when I go to the Contact Us page and click on the Call Us link, I get a pop-up asking for my zip code and then I am taken right back to the Contact US - no phone #'s given. Th