Target ( TGT) posted quarterly earnings and sales that rose from a year ago, and the discount retailer said it still expects to meet analysts' expectations for the full year.

The company reported second-quarter earnings of $344 million, or 38 cents a share, up from $271 million, or 30 cents a share, in the same period last year. On average, analysts polled by First Call were expecting a profit of 37 cents.

Total revenue increased 12.6% to $10.07 billion from $8.94 billion last year, driven by a 16.2% revenue increase at the company's namesake stores. Second-quarter same-store sales, which measures revenue from stores open more than a year, rose 3%.

Target indicated that third-quarter analysts' estimates ultimately might prove to be too optimistic, but the company didn't change its guidance. The company said it remains comfortable with the consensus earnings estimate of $1.83 a share for the full year.

Separately, Target said CEO Bob Ulrich and CFO Doug Scovanner plan to sign and file the certifications required by the Securities and Exchange Commission following their review with the company's audit committee and board of directors. The filing is due in conjunction with the company's second-quarter 10-Q filing, on or before Sept. 17.

Shares of Target were recently up 5% to $33.82. The broader sector was also stronger, with the Dow Jones U.S. Retail Index adding 3.3%.

More from Technology

3 Warren Buffett Stock Picks That Could Be Perfect for Your Retirement Portfolio

3 Warren Buffett Stock Picks That Could Be Perfect for Your Retirement Portfolio

50 Stocks That Could Be Shredded If a U.S. Trade War With China Ignites

50 Stocks That Could Be Shredded If a U.S. Trade War With China Ignites

Salesforce Is Hitting on All Cylinders as Shares Notch an All-Time High

Salesforce Is Hitting on All Cylinders as Shares Notch an All-Time High

Tuesday Turnaround in Politics: Is a Trade War on the Horizon?

Tuesday Turnaround in Politics: Is a Trade War on the Horizon?

FANG Stocks Get Swept Up in Broader Market Selloff

FANG Stocks Get Swept Up in Broader Market Selloff