01-15-2002
Alrighty then....I have a table that contains a number of columns.
I want to count the number of instances of each distinct entry in one column.
i.e.
Table has a request_status column - which can have one of 5 states.... approved, rejected, processed ....
I want to count the number of approved and the number of rejected etc. I don't want to do this manually as with 5 it's okay - but I want the syntax for other queries where there are hundreds of states .....
8 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi ... apologies for posting in this section ... I figured this would be the best place to pose this question - does anyone know a good forum for selling Unix related hardware - I have a handful of HP C3750's that I would like to sell. I am located in Toronto. Thx. (2 Replies)
Discussion started by: krs1
2 Replies
2. AIX
Which Forum for IBM Storage production are good? (1 Reply)
Discussion started by: rainbow_bean
1 Replies
3. UNIX for Advanced & Expert Users
Hi Experts:
I have a shell script that's kicked off by cron. Inside this shell script, I need to kick off two or more oracle sql scripts to process different groups of tables. And when both sql scripts are done, I will continue in the shell script to do other things like checking processing... (3 Replies)
Discussion started by: huasheng8
3 Replies
4. What is on Your Mind?
This forum has been so instrumental in my learning scripting and unix commands that I seriously can't believe it and have been advertising it to everyone I know. I started from almost zero knowledge and within a few months I already feel much less ignorant.
The amount of information and... (7 Replies)
Discussion started by: newbie2010
7 Replies
5. What is on Your Mind?
Just a quick update; to speed up the forums, I have disabled the forum statistics on the home page for non registered users.
No changes for registered users. (0 Replies)
Discussion started by: Neo
0 Replies
6. Shell Programming and Scripting
Hi All,
I want to run multiple sql queries and store the data in variable but i want to use sql command only once. Is there a way without running sql command twice and storing.Please advise.
Eg :
Select 'Query 1 output' from dual;
Select 'Query 2 output' from dual;
I want to... (3 Replies)
Discussion started by: Rokkesh
3 Replies
7. UNIX and Linux Applications
Good evening, i need to ask a question to those who have been working with oracle database.
I am a newbie in oracle Databases and Ive been looking for any specific oracle forum and i have found hundrends of them. could you recomend a good one from different levels from the basic ones ?
i... (2 Replies)
Discussion started by: alexcol
2 Replies
8. What is on Your Mind?
For mobile users, I have just added a "first beta" Advanced Forum Statistics to the home page on mobile using CSS overflow:auto; so you can swipe if you need to see more. Google Search Console mobile usability says this page is "mobile friendly" so perhaps this will be useful for some of our... (12 Replies)
Discussion started by: Neo
12 Replies
LEARN ABOUT MOJAVE
dbix::class::resultsourceproxy::table5.18
DBIx::Class::ResultSourceProxy::Table(3) User Contributed Perl Documentation DBIx::Class::ResultSourceProxy::Table(3)
NAME
DBIx::Class::ResultSourceProxy::Table - provides a classdata table object and method proxies
SYNOPSIS
__PACKAGE__->table('cd');
__PACKAGE__->add_columns(qw/cdid artist title year/);
__PACKAGE__->set_primary_key('cdid');
METHODS
add_columns
__PACKAGE__->add_columns(qw/cdid artist title year/);
Adds columns to the current class and creates accessors for them.
table
__PACKAGE__->table('tbl_name');
Gets or sets the table name.
table_class
__PACKAGE__->table_class('DBIx::Class::ResultSource::Table');
Gets or sets the table class used for construction and validation.
has_column
if ($obj->has_column($col)) { ... }
Returns 1 if the class has a column of this name, 0 otherwise.
column_info
my $info = $obj->column_info($col);
Returns the column metadata hashref for a column. For a description of the various types of column data in this hashref, see "add_column"
in DBIx::Class::ResultSource
columns
my @column_names = $obj->columns;
AUTHOR AND CONTRIBUTORS
See AUTHOR and CONTRIBUTORS in DBIx::Class
LICENSE
You may distribute this code under the same terms as Perl itself.
perl v5.18.2 2013-12-16 DBIx::Class::ResultSourceProxy::Table(3)