Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8027245
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T23:45:11+00:00 2026-06-04T23:45:11+00:00

Day1 IP Address Model Number MAC Address Host Name Date Phone Load Version 10.1.1.14

  • 0
Day1
IP Address  Model Number    MAC Address Host Name   Date    Phone Load Version
10.1.1.14   CP-8945 70CA9B010000    SEP70CA9B01001  2012-06-01 SCCP 9-2-2-0
10.1.1.15   CP-8945 70CA9B010001    SEP70CA9B01002  2012-06-01 SCCP 9-2-2-0
10.1.1.16   CP-8945 70CA9B010002    SEP70CA9B01003  2012-06-01 SCCP 9-2-2-0
10.1.1.17   CP-8945 70CA9B010003    SEP70CA9B01004  2012-06-01 SCCP 9-2-2-0

Day2
IP Address  Model Number    MAC Address Host Name   Date    Phone Load Version
10.1.1.14   CP-8945 70CA9B010000    SEP70CA9B01001  2012-06-02 SCCP 9-2-2-0
10.1.1.15   CP-8945 70CA9B010001    SEP70CA9B01002  2012-06-02 SCCP 9-2-2-0
10.1.1.16   CP-8945 70CA9B010002    SEP70CA9B01003  2012-06-02 SCCP 9-2-2-0
10.1.1.17   CP-8945 70CA9B010003    SEP70CA9B01004  2012-06-02 SCCP 9-2-2-1

Result
10.1.1.17   CP-8945 70CA9B010003    SEP70CA9B01004  2012-06-02 SCCP 9-2-2-1

I am not sure if this is possible. I have a MySQL table with multiple matching rows except date. How would I compare 2 dates and list the differences in any column?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T23:45:12+00:00Added an answer on June 4, 2026 at 11:45 pm

    I tried doing same scenario before in SQL Trigger and this is what I’ve done.

    SELECT 
        d2.ip_add,
        d2.mdl_num,
        d2.mac_add,
        d2.host_name,
        d2.date,
        d2.phone,
        d2.load_ver
    From 
        day2 d2
    LEFT JOIN
        day1 d1
    ON
    d1.ip_add = d2.ip_add
    WHERE
        d2.ip_add <> d1.ip_add
    OR 
        d2.mdl_num <> d1.mdl_num
    OR
        d2.mac_add <> d1.mac_add
    OR
        d2.host_name <> d1.host_name
    OR
        d2.phone <> d1.phone
    OR
        d2.load_ver <> d1.load_ver; 
    

    This will return the difference between two identical tables.

    I edit my query so that it will only look on 1 table.
    Try this one,

    SELECT 
        d2.ip_add,
        d2.mdl_num,
        d2.mac_add,
        d2.host_name,
        d2.date,
        d2.phone,
        d2.load_ver
    FROM 
            (SELECT 
                ip_add,
                mdl_num,
                mac_add,
                host_name,
                DATE,
                phone,
                load_ver,
                day
             FROM
                tblRecords
             WHERE
                day = 2
             ) AS d2
    LEFT JOIN
            (SELECT 
                ip_add,
                mdl_num,
                mac_add,
                host_name,
                DATE,
                phone,
                load_ver,
                day
             FROM
                tblRecords
             WHERE
                 day = 1
            ) AS d1
    ON
        d1.ip_add = d2.ip_add
    WHERE
        d2.ip_add <> d1.ip_add
    OR 
        d2.mdl_num <> d1.mdl_num
    OR
        d2.mac_add <> d1.mac_add
    OR
        d2.host_name <> d1.host_name
    OR
        d2.phone <> d1.phone
    OR
        d2.load_ver <> d1.load_ver; 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: PHP/MySQL - Format date/time I have input field (name:day1 and varchar) to
So, I have this code: <form id=a> <select name=day1 id=day1> <option value=01>01</option> <option value=02>02</option>
Iam trying to encode url of the xmlhttprequest method as utf-8 var Url=(http://localhost/day1/tryconnect.php?add=+address) ;
Let's say i have a table with the following data: day1 item1 30 day1
If I want to use the compare method to compare two days: [day1 compare:day2]
In my xml I have: <RelativeLayout android:id=@+id/mainWeek android:layout_height=387dip android:layout_width=match_parent android:layout_marginTop=5dip> <RelativeLayout android:id=@+id/day1 android:layout_marginTop=5dip android:layout_marginLeft=5dip
My listview row appears with one word name. I want to change into two
Let's say there is this table which stores the number of visitors for each
I've this snippet: var d1 = parseInt( document.getElementById('day1').value ); var m1 = parseInt( document.getElementById('month1').value
i have this class MainController { def test = { def day1 =1 def

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.