User Profile

Collapse

Profile Sidebar

Collapse
rpnew
rpnew
Last Activity: Apr 2 '18, 04:13 PM
Joined: Aug 22 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Glad that it helped..
    See more | Go to post

    Leave a comment:


  • Hi Kelvinejimogu,

    This part in your query should have alias

    Code:
    SELECT `Post_id`, COUNT(`Comm_id`) AS `total_comments`, MAX(`comm_date`) AS `last_comment` FROM `comments
    Like
    Code:
    (SELECT `Post_id`, COUNT(`Comm_id`) AS `total_comments`, MAX(`comm_date`) AS `last_comment` FROM `comments) tab1
    BTW I don't see condition for your LEFT join either on which you are joining with...
    See more | Go to post

    Leave a comment:


  • rpnew
    replied to Transpose Query Output
    Okay.. but so far it looks okay.. The report will go into testing now so will see once it is tested.. and thanks for the reply once again..

    Regards,
    RP
    See more | Go to post

    Leave a comment:


  • rpnew
    replied to Transpose Query Output
    Hi Rabbit,

    Agreed.. that there is now way to check the order in which the rows were entered but thats not the issue. We can for example sort the output by ID and use the output.

    BTW, I got the output which i wanted by using GROUP_CONCAT() and then SUBSTRING_INDEX () however just wanted to know.. how much will this affect performance of qeury. Although, i dont see much issue there but just to get some idea..

    Regards,...
    See more | Go to post

    Leave a comment:


  • rpnew
    replied to Transpose Query Output
    Hi,

    Let say.. first entries for each IDs should be first row... second entries for each IDs should be second row.. third entries of each IDs should be third row.. and so on..

    Regards,
    RP
    See more | Go to post

    Leave a comment:


  • rpnew
    replied to Transpose Query Output
    Hi Rabbit,

    let me put my ouput in another way...


    "id" "age"
    ----------
    "1" "0"
    "2" "0"
    "3" "0"
    "4" "0"
    "5" "0"
    "1" "11"
    "2" "30"
    "3" "1"
    "4" "1"
    "5"...
    See more | Go to post

    Leave a comment:


  • rpnew
    replied to Transpose Query Output
    Hi Rabbit,

    Yeah.. sorry my mistake.... you are right.. Required ouput is something like this..

    ID 1 2 3 4 5
    AGE 0 0 0 0 0
    AGE 11 30 1 1 1

    Regards,
    RP
    See more | Go to post

    Leave a comment:


  • rpnew
    replied to Transpose Query Output
    Okay.. let me explain a bit more..

    I suppose output is not much difficult to understand.. now my requirement is to change column into rows..

    right now query output is

    id" "age"
    "1" "0"
    "1" "11"
    "2" "0"
    "2" "30"
    "3" "0"
    "3" "1"...
    See more | Go to post

    Leave a comment:


  • rpnew
    replied to Transpose Query Output
    Any suggestions for above.. i need to complete one report?
    See more | Go to post

    Leave a comment:


  • rpnew
    started a topic Transpose Query Output

    Transpose Query Output

    Hi All,

    It feels so good to be back on Bytes after almsot 2-3 years.. anyways here is my quesion. I would like to transpose my query output.

    here are the details..


    *** Tables
    GDCA
    gdcid,gdcid,gda id,age


    GDA
    gdaid,name


    *** Queries

    SELECT
    gda.id,age
    FROM
    gdca
    JOIN gda ON (gda.id = gdca.gdaid)...
    See more | Go to post

  • rpnew
    replied to Materialized view Refresh
    Hi,
    I'm not sure if i could help you or not.. but could you provide more information like.. your table structure, your materialized view query and all.... so that we would be able to get more insight on your problem.

    Thanks,
    RP
    See more | Go to post

    Leave a comment:


  • rpnew
    replied to Make partition of Harddisk on Vista
    Hi,

    Well i have done the partition now. I was not able to make extended partition through Windows so i used one third party software- Paragon Hard Disk Manager -
    and through that i was able to make extended partition.


    Thanks,
    RP
    See more | Go to post

    Leave a comment:


  • rpnew
    replied to Make partition of Harddisk on Vista
    Hi,
    I have already seen the page you have given but when i try to do it that way it wont allow me to create a new partition and it is not creating a new extended partition as well. Regarding Diskpart i tried hands on it but i seem not understanding it properly. As it is not working for me. Can you provide some good tutorial on Diskpart..

    Thanks,
    RP
    See more | Go to post

    Leave a comment:


  • rpnew
    replied to Make partition of Harddisk on Vista
    Hi,

    Well through Windows partition manager i was not able to shrink C drive after some limit so i used BootItNg to make C drive according to what i wanted. Then i used windows partition manager to make another 50 GB partition. But then i cant do anything with remaining unallocated space of about 120+ GB neither with BootItNg nor with window partition manger. As per what i learn from Net i can not make further Primary partition and...
    See more | Go to post

    Leave a comment:


  • rpnew
    replied to Make partition of Harddisk on Vista
    Hi YarrOfDoom,

    Well i used BootitNg to first trim my C drive now i have drives as below.
    C - 50 GB
    D - 10 GB (Recovery)
    F - 50 GB (Empty)
    and then 120+ GB unallocated.
    When i try to make new volume from this unallocated space it would not allow me giving error " You can not create a new volume in this unallocated space because the disk already contains the maximum number of partitions" . Any help...
    See more | Go to post

    Leave a comment:


  • rpnew
    started a topic Make partition of Harddisk on Vista

    Make partition of Harddisk on Vista

    Hi All,

    i recently got new Compaq laptop- CQ 45-106 AU (If i'm not wrong- will update it after reaching home.). Now i have two questions regarding this.

    First one is i want to make partition of my hard disk. My laptop harddisk is around ~ 250GB. Now i would like to make partition of lets say 50GB each. Presently there are two partitions.One is of recovery and that is of 10 GB and rest is allocated to C drive. Now what...
    See more | Go to post

  • rpnew
    replied to problem with PHP from commandline
    in PHP
    Hi,
    thanks for the reply.. i think for both of my cases i need to reconfigure my PHP mostly to newer version..

    Regards,
    RP...
    See more | Go to post

    Leave a comment:


  • rpnew
    replied to Call to undefined function: mysql_connect()
    in PHP
    Hi,
    Thanks for the reply.. i'll look into that...

    Regards,
    RP...
    See more | Go to post

    Leave a comment:


  • rpnew
    started a topic Call to undefined function: mysql_connect()
    in PHP

    Call to undefined function: mysql_connect()

    Hi,

    well i know that i've some problem here with php and mysql.. mainly with php compilation with mysql...
    now i've "php 4.2.2" on server... and "mysql Ver 14.12 Distrib 5.0.24, for pc-linux-gnu (i686) using readline 5.0"

    1. when i run phpinfo() it shows

      --with-mysql=shared,/usr but no mysql related other info
    2. when i run php from commandline then it shows following error "PHP
    ...
    See more | Go to post

  • welcome,
    Glad that you found solution.
    come back whenever you have problem.

    Regards,
    RP...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...